Format tunnel IDs consistently.
authorBen Pfaff <blp@nicira.com>
Wed, 1 Dec 2010 00:54:50 +0000 (16:54 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 17:32:31 +0000 (09:32 -0800)
commit5b16f00916dbae0c2a3f91e504332b61f021a91a
tree90468942709740d87a00257dc2f8ec465bc2439b
parent8e6c8ff5ae19b04f45905cc35163a855c096d0a3
Format tunnel IDs consistently.

Some code failed to convert tunnel IDs to host byte order for printing,
so this fixes that.  Some code printed tunnel IDs with a 0x prefix and
other code didn't, so this code uses the '#' flag consistently (which
prints 0x for nonzero values and omits it for zero).

This commit also stops always printing all 8 digits.  When tunnel IDs
are expanded to 64 bits, as they will be soon, printing 16 digits all the
time wastes too much space.

Acked-by: Jesse Gross <jesse@nicira.com>
lib/flow.c
lib/odp-util.c
lib/ofp-print.c