From: Justin Pettit Date: Thu, 15 Nov 2012 21:05:58 +0000 (-0800) Subject: dpif: Don't log warning for ENOENT with dpif_port_exists(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff_plain;h=bee6b8bc16b1c42fef8843cffe4d68b464cddadf dpif: Don't log warning for ENOENT with dpif_port_exists(). The caller wants to know whether 'devname' is attached to 'dpif', and ENOENT is a legitimate response to that not being the case. Signed-off-by: Justin Pettit --- diff --git a/lib/dpif.c b/lib/dpif.c index 9577e4fa..9feb67ba 100644 --- a/lib/dpif.c +++ b/lib/dpif.c @@ -516,7 +516,7 @@ bool dpif_port_exists(const struct dpif *dpif, const char *devname) { int error = dpif->dpif_class->port_query_by_name(dpif, devname, NULL); - if (error != 0 && error != ENODEV) { + if (error != 0 && error != ENOENT && error != ENODEV) { VLOG_WARN_RL(&error_rl, "%s: failed to query port %s: %s", dpif_name(dpif), devname, strerror(error)); }