]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ife: print prio, mark and hash as unsigned
authorRoman Mashak <mrv@mojatatu.com>
Tue, 11 Oct 2016 11:00:41 +0000 (07:00 -0400)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 12 Oct 2016 22:09:52 +0000 (15:09 -0700)
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
tc/m_ife.c

index a5a7516d86ba6d6ec8c1f0f2c206aedc1f867853..588bad7fdefd304ff3aa369bc10d3c9e99d3b493 100644 (file)
@@ -252,7 +252,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
                        len = RTA_PAYLOAD(metalist[IFE_META_SKBMARK]);
                        if (len) {
                                mmark = rta_getattr_u32(metalist[IFE_META_SKBMARK]);
-                               fprintf(f, "use mark %d ", mmark);
+                               fprintf(f, "use mark %u ", mmark);
                        } else
                                fprintf(f, "allow mark ");
                }
@@ -261,7 +261,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
                        len = RTA_PAYLOAD(metalist[IFE_META_HASHID]);
                        if (len) {
                                mhash = rta_getattr_u32(metalist[IFE_META_HASHID]);
-                               fprintf(f, "use hash %d ", mhash);
+                               fprintf(f, "use hash %u ", mhash);
                        } else
                                fprintf(f, "allow hash ");
                }
@@ -270,7 +270,7 @@ static int print_ife(struct action_util *au, FILE *f, struct rtattr *arg)
                        len = RTA_PAYLOAD(metalist[IFE_META_PRIO]);
                        if (len) {
                                mprio = rta_getattr_u32(metalist[IFE_META_PRIO]);
-                               fprintf(f, "use prio %d ", mprio);
+                               fprintf(f, "use prio %u ", mprio);
                        } else
                                fprintf(f, "allow prio ");
                }