summaryrefslogtreecommitdiffstats
path: root/tc/f_u32.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-09 15:42:34 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-05-09 15:42:34 -0700
commit44dcfe820185590f04c9f5f18579d08532fc1a4b (patch)
treeda01e818bdc7e425e3e19948786ab201022e443f /tc/f_u32.c
parent7dec1bf88bc34e2d0b320f0c23bd1a060c73852b (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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tc/f_u32.c b/tc/f_u32.c
index 7e4d56ca..aba767d0 100644
--- a/tc/f_u32.c
+++ b/tc/f_u32.c
@@ -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) {