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:06:44 +0000 (11:06 -0700)
CC: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
vswitchd/bridge.c

index 077d9ee15f34ec0a551eb5c9a1da03f92a1f7606..833973a3b452697f5e5d19d3cbce9e51f48122d2 100644 (file)
@@ -1306,7 +1306,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);