Deprecate referring to ports by name in ovs-ofctl.
[openvswitch] / lib / ofp-util.c
index 366dcae0e410d3a278f494131914bec5d889ec84..c78199f78ef780348fe073abe93e7020c98d2860 100644 (file)
@@ -3569,9 +3569,9 @@ ofputil_port_from_string(const char *s)
 
             ds_init(&s);
             ofputil_format_port(port32, &s);
-            VLOG_WARN("port %u is better referred to as %s, for compatibility "
-                      "with future versions of OpenFlow",
-                      port32, ds_cstr(&s));
+            VLOG_WARN_ONCE("referring to port %s as %u is deprecated for "
+                           "compatibility with future versions of OpenFlow",
+                           ds_cstr(&s), port32);
             ds_destroy(&s);
 
             return port32;