From a181129613bd0e48942e84577cbf4c78809ec256 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 3 Dec 2010 14:42:28 -0800 Subject: [PATCH] dpif: Log port number of deleted port in dpif_port_del(). This made tracking down a particular bug easier for me. (It's too bad that we can't log the port name, but we don't have it here.) --- lib/dpif.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/dpif.c b/lib/dpif.c index 952e1a2d..03e13acc 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -482,7 +482,12 @@ dpif_port_del(struct dpif *dpif, uint16_t port_no) COVERAGE_INC(dpif_port_del); error = dpif->dpif_class->port_del(dpif, port_no); - log_operation(dpif, "port_del", error); + if (!error) { + VLOG_DBG_RL(&dpmsg_rl, "%s: port_del(%"PRIu16")", + dpif_name(dpif), port_no); + } else { + log_operation(dpif, "port_del", error); + } return error; } -- 2.30.2