From: Justin Pettit Date: Sat, 10 Apr 2010 08:20:23 +0000 (-0700) Subject: print: Print mod_vlan_vid action in decimal X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a1f89c86b67db7ad1532031a726bd4f517ab162;p=openvswitch 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 --- 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,