print: Print mod_vlan_vid action in decimal
authorJustin Pettit <jpettit@nicira.com>
Sat, 10 Apr 2010 08:20:23 +0000 (01:20 -0700)
committerJustin 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

index 937eb15..bcaf230 100644 (file)
@@ -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,