From 2d39507c5aac5d6e1e841ff338c2378c561d1ff6 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 1 Jul 2013 11:03:23 -0700 Subject: [PATCH] odp-util: Clearly indicate VID mask is printed in hex. Signed-off-by: Justin Pettit Acked-by: Andy Zhou --- lib/odp-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index c05664c64..b233cbe18 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1058,7 +1058,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), -- 2.43.0