Slight improvement to printing of ofp_port_status messages.
authorJustin Pettit <jpettit@nicira.com>
Fri, 19 Sep 2008 09:00:06 +0000 (02:00 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 19 Sep 2008 09:00:06 +0000 (02:00 -0700)
lib/ofp-print.c

index de2c2339d1f1229daf16c5c3490f74e164a99f25..cd0630d0317ce51ae44b072660c5645de9a36f5b 100644 (file)
@@ -701,13 +701,11 @@ ofp_print_port_status(struct ds *string, const void *oh, size_t len,
     const struct ofp_port_status *ops = oh;
 
     if (ops->reason == OFPPR_ADD) {
-        ds_put_format(string, "add:");
+        ds_put_format(string, " ADD:");
     } else if (ops->reason == OFPPR_DELETE) {
-        ds_put_format(string, "del:");
+        ds_put_format(string, " DEL:");
     } else if (ops->reason == OFPPR_MOD) {
-        ds_put_format(string, "mod:");
-    } else {
-        ds_put_format(string, "err:");
+        ds_put_format(string, " MOD:");
     }
 
     ofp_print_phy_port(string, &ops->desc);