From 6a1f89c86b67db7ad1532031a726bd4f517ab162 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Sat, 10 Apr 2010 01:20:23 -0700 Subject: [PATCH] print: Print mod_vlan_vid action in decimal 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 --- lib/ofp-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 937eb15d..bcaf2307 100644 --- 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, -- 2.30.2