vswitchd: Report actual port number, not -1, in "added interface" message.
authorBen Pfaff <blp@nicira.com>
Tue, 24 Apr 2012 17:44:54 +0000 (10:44 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 24 Apr 2012 18:07:04 +0000 (11:07 -0700)
CC: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
vswitchd/bridge.c

index c4fc3a9..19f42e4 100644 (file)
@@ -1295,7 +1295,7 @@ iface_create(struct bridge *br, struct if_cfg *if_cfg, int ofp_port)
         error = ofproto_port_add(br->ofproto, iface->netdev, &new_ofp_port);
         if (!error) {
             VLOG_INFO("bridge %s: added interface %s (%d)", br->name,
-                      iface->name, ofp_port);
+                      iface->name, new_ofp_port);
             iface_set_ofp_port(iface, new_ofp_port);
         } else {
             netdev_close(iface->netdev);