From: Justin Pettit Date: Fri, 19 Sep 2008 09:00:06 +0000 (-0700) Subject: Slight improvement to printing of ofp_port_status messages. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cade93d46d7260abf02dd149d2478ee900e4474b;p=openvswitch Slight improvement to printing of ofp_port_status messages. --- diff --git a/lib/ofp-print.c b/lib/ofp-print.c index de2c2339..cd0630d0 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -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);