From: Justin Pettit Date: Sat, 5 Jan 2013 18:43:49 +0000 (-0800) Subject: dpif-linux: Log the correct port-PID mapping. X-Git-Tag: sliver-openvswitch-1.9.90-3~10^2~14 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=f205882ae92cce3f6188d6612093cea1ce902a31 dpif-linux: Log the correct port-PID mapping. When adding a port, the code previously logged the requested port number (which is generally UINT32_MAX) instead of the assigned port number. Signed-off-by: Justin Pettit --- diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index d9dd3b2ee..c75b8ccfd 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -431,7 +431,7 @@ dpif_linux_port_add(struct dpif *dpif_, struct netdev *netdev, if (!error) { *port_nop = reply.port_no; VLOG_DBG("%s: assigning port %"PRIu32" to netlink pid %"PRIu32, - dpif_name(dpif_), request.port_no, upcall_pid); + dpif_name(dpif_), reply.port_no, upcall_pid); } else if (error == EBUSY && *port_nop != UINT32_MAX) { VLOG_INFO("%s: requested port %"PRIu32" is in use", dpif_name(dpif_), *port_nop);