aboutsummaryrefslogtreecommitdiff
path: root/vswitchd
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-04-24 10:44:54 -0700
committerBen Pfaff <blp@nicira.com>2012-04-24 11:06:44 -0700
commit5167b8709e5131887c4135e8074b76786579eaa9 (patch)
tree665666df1bf463cbb95306321cb2916d3a514ed8 /vswitchd
parentcf9deac5074e1e3e6f54ad18e79a1348231fe1b6 (diff)
vswitchd: Report actual port number, not -1, in "added interface" message.
CC: Ethan Jackson <ethan@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'vswitchd')
-rw-r--r--vswitchd/bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 077d9ee1..833973a3 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -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);