From f205882ae92cce3f6188d6612093cea1ce902a31 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Sat, 5 Jan 2013 10:43:49 -0800 Subject: [PATCH] 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 --- lib/dpif-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0