odp-util: Format VLAN headers more like other headers in ODP flow output.
authorBen Pfaff <blp@nicira.com>
Thu, 4 Aug 2011 20:32:19 +0000 (13:32 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 8 Aug 2011 20:14:01 +0000 (13:14 -0700)
The rest of the headers all follow the form "header(value)" or
"header(key1=value1,key2=value2,...)" but VLAN headers left out the "="
characters.  This adds them in for consistency.

lib/odp-util.c

index 93f8f8a..62cb504 100644 (file)
@@ -272,7 +272,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds *ds)
         if (q_key->q_tpid != htons(ETH_TYPE_VLAN)) {
             ds_put_format(ds, "tpid=0x%04"PRIx16",", ntohs(q_key->q_tpid));
         }
-        ds_put_format(ds, "vid%"PRIu16",pcp%d)",
+        ds_put_format(ds, "vid=%"PRIu16",pcp=%d)",
                       vlan_tci_to_vid(q_key->q_tci),
                       vlan_tci_to_pcp(q_key->q_tci));
         break;