diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-09 15:42:34 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-09 15:42:34 -0700 |
commit | 44dcfe820185590f04c9f5f18579d08532fc1a4b (patch) | |
tree | da01e818bdc7e425e3e19948786ab201022e443f /tc/f_u32.c | |
parent | 7dec1bf88bc34e2d0b320f0c23bd1a060c73852b (diff) |
Change formatting of u32 back to default
Don't break scripts that depend on previous offset/value format.
Introduce a new -pretty flag for decoding, and (*gasp*) document
the formatting arguments.
Diffstat (limited to 'tc/f_u32.c')
-rw-r--r-- | tc/f_u32.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -25,6 +25,8 @@ #include "utils.h" #include "tc_util.h" +extern int show_pretty; + static void explain(void) { fprintf(stderr, "Usage: ... u32 [ match SELECTOR ... ] [ link HTID ]" @@ -793,7 +795,7 @@ static void show_key(FILE *f, const struct tc_u32_key *key) { char abuf[256]; - if (show_raw) + if (!show_pretty) goto raw; switch (key->off) { |