From d7da8505f29e73083d0ce3ddf87ddcbc0c7e4454 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 10 Oct 2008 09:56:13 -0700 Subject: [PATCH] Fix inaccurate log message. --- secchan/secchan.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/secchan/secchan.c b/secchan/secchan.c index 2447884c..a937d097 100644 --- a/secchan/secchan.c +++ b/secchan/secchan.c @@ -720,11 +720,13 @@ call_local_port_changed_callbacks(struct port_watcher *pw) name[0] = '\0'; } if (strcmp(pw->local_port_name, name)) { - VLOG_WARN("Identified data path local port as \"%s\".", name); - } else { - VLOG_WARN("Data path has no local port."); + if (name[0]) { + VLOG_WARN("Identified data path local port as \"%s\".", name); + } else { + VLOG_WARN("Data path has no local port."); + } + strcpy(pw->local_port_name, name); } - strcpy(pw->local_port_name, name); /* Invoke callbacks. */ for (i = 0; i < pw->n_local_cbs; i++) { -- 2.30.2