projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
034f125
)
Slight improvement to printing of ofp_port_status messages.
author
Justin Pettit
<jpettit@nicira.com>
Fri, 19 Sep 2008 09:00:06 +0000
(
02:00
-0700)
committer
Justin Pettit
<jpettit@nicira.com>
Fri, 19 Sep 2008 09:00:06 +0000
(
02:00
-0700)
lib/ofp-print.c
patch
|
blob
|
history
diff --git
a/lib/ofp-print.c
b/lib/ofp-print.c
index de2c2339d1f1229daf16c5c3490f74e164a99f25..cd0630d0317ce51ae44b072660c5645de9a36f5b 100644
(file)
--- 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) {
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) {
} else if (ops->reason == OFPPR_DELETE) {
- ds_put_format(string, "
del
:");
+ ds_put_format(string, "
DEL
:");
} else if (ops->reason == OFPPR_MOD) {
} 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);
}
ofp_print_phy_port(string, &ops->desc);