odp-util: Clearly indicate VID mask is printed in hex.
authorJustin Pettit <jpettit@nicira.com>
Mon, 1 Jul 2013 18:03:23 +0000 (11:03 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 3 Jul 2013 16:42:13 +0000 (09:42 -0700)
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/odp-util.c

index 57393fb..09c0ae8 100644 (file)
@@ -1054,7 +1054,7 @@ format_odp_key_attr(const struct nlattr *a, const struct nlattr *ma,
             ovs_be16 vlan_tci = nl_attr_get_be16(a);
             if (!is_exact) {
                 ovs_be16 mask = nl_attr_get_be16(ma);
-                ds_put_format(ds, "vid=%"PRIu16"/%"PRIx16",pcp=%d/0x%x,cfi=%d/%d",
+                ds_put_format(ds, "vid=%"PRIu16"/0x%"PRIx16",pcp=%d/0x%x,cfi=%d/%d",
                               vlan_tci_to_vid(vlan_tci),
                               vlan_tci_to_vid(mask),
                               vlan_tci_to_pcp(vlan_tci),