]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc: m_ife: print IEEE ethertype format
authorAlexander Aring <aring@mojatatu.com>
Mon, 28 Aug 2017 19:07:36 +0000 (15:07 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 30 Aug 2017 15:26:46 +0000 (08:26 -0700)
This patch uses the usually IEEE format to display an ethertype which is
4-digits and every digit in upper case.

Signed-off-by: Alexander Aring <aring@mojatatu.com>
tc/m_ife.c

index e05e2276bd5ae3422b003c6896ed66d579c7a3f0..7b57130e67f57e330c14d901dff5c215f04f2f11 100644 (file)
@@ -125,7 +125,7 @@ static int parse_ife(struct action_util *a, int *argc_p, char ***argv_p,
                        NEXT_ARG();
                        if (get_u16(&ife_type, *argv, 0))
                                invarg("ife type is invalid", *argv);
-                       fprintf(stderr, "IFE type 0x%x\n", ife_type);
+                       fprintf(stderr, "IFE type 0x%04X\n", ife_type);
                        user_type = 1;
                } else if (matches(*argv, "dst") == 0) {
                        NEXT_ARG();