projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cce212
)
print: Print mod_vlan_vid action in decimal
author
Justin Pettit
<jpettit@nicira.com>
Sat, 10 Apr 2010 08:20:23 +0000
(
01:20
-0700)
committer
Justin Pettit
<jpettit@nicira.com>
Mon, 12 Apr 2010 09:46:12 +0000
(
02:46
-0700)
In a flow description, the VLAN VID was printed in hex, but an VLAN VID
modification would print the value in decimal. This commit consistently
prints the value in decimal.
CC: Paul Ingram <paul@nicira.com>
lib/ofp-print.c
patch
|
blob
|
history
diff --git
a/lib/ofp-print.c
b/lib/ofp-print.c
index 937eb15d83282824029400e61cd00fac4ce58ce6..bcaf2307907c41a895ede7cd8bfe4e05d57e347b 100644
(file)
--- a/
lib/ofp-print.c
+++ b/
lib/ofp-print.c
@@
-675,7
+675,7
@@
ofp_match_to_string(const struct ofp_match *om, int verbosity)
print_wild(&f, "in_port=", w & OFPFW_IN_PORT, verbosity,
"%d", ntohs(om->in_port));
print_wild(&f, "dl_vlan=", w & OFPFW_DL_VLAN, verbosity,
- "
0x%04x
", ntohs(om->dl_vlan));
+ "
%d
", ntohs(om->dl_vlan));
print_wild(&f, "dl_vlan_pcp=", w & OFPFW_DL_VLAN_PCP, verbosity,
"%d", om->dl_vlan_pcp);
print_wild(&f, "dl_src=", w & OFPFW_DL_SRC, verbosity,