From cade93d46d7260abf02dd149d2478ee900e4474b Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 19 Sep 2008 02:00:06 -0700 Subject: [PATCH] Slight improvement to printing of ofp_port_status messages. --- lib/ofp-print.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); -- 2.30.2