projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4843252
)
odp-util: Clearly indicate VID mask is printed in hex.
author
Justin Pettit
<jpettit@nicira.com>
Mon, 1 Jul 2013 18:03:23 +0000
(11:03 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Wed, 3 Jul 2013 16:41:00 +0000
(09:41 -0700)
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/odp-util.c
patch
|
blob
|
history
diff --git
a/lib/odp-util.c
b/lib/odp-util.c
index
c05664c
..
b233cbe
100644
(file)
--- 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),