odp-util: Print EtherTypes consistently.
authorJesse Gross <jesse@nicira.com>
Sun, 30 Jan 2011 07:41:27 +0000 (23:41 -0800)
committerJesse Gross <jesse@nicira.com>
Sun, 30 Jan 2011 07:41:27 +0000 (23:41 -0800)
commit074d69f58bd9d9805e0146c8eddf3cb2e0827e8d
treee39c1982c97c71dcf71c6865cd6167522da1ffae
parentf9ef1c31cfcd2d9ded66588a11c59e29e5aaa2ca
odp-util: Print EtherTypes consistently.

The '#' format specifier doesn't respect the field width modifier,
so EtherTypes are printed with variable length.  Zero is not a valid
EtherType so there isn't a need for the logic to dynamically insert
the 0x prefix (if the EtherType isn't specified it won't be printed
at all).  This fixes the EtherType to have the intended format and
also changes the vlan TPID to match.
lib/odp-util.c