lib: Unify flags parsing and formatting.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 5 Sep 2014 22:44:20 +0000 (15:44 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Mon, 8 Sep 2014 22:02:30 +0000 (15:02 -0700)
commitea2735d3cc23d062bd60ab442e48d6021ac4d15d
treed58b3efc839e6454e99bf1a37e7f2bd6688fd930
parent260974dcdfd707a8ee82ec97713211b76b08c82b
lib: Unify flags parsing and formatting.

Use the "+-" syntax more uniformly when printing masked flags, and use
the syntax of delimited 1-flags also for formatting fully masked TCP
flags.

The "+-" syntax only deals with masked flags, but if there are many of
those, the printout becomes long and confusing.  Typically there are
many flags only when flags are fully masked, but even then most of
them are zeros, so it makes sense to print the flags that are set
(ones) and omit the zero flags.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/flow.h
lib/match.c
lib/odp-util.c
lib/odp-util.h
tests/ofp-print.at
tests/ofproto-dpif.at