From: Roman Mashak Date: Tue, 11 Oct 2016 11:00:41 +0000 (-0400) Subject: ife: print prio, mark and hash as unsigned X-Git-Tag: v4.9.0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57ee4430f9fafd436e153f29e5046e41f1b6faa1;p=thirdparty%2Fiproute2.git ife: print prio, mark and hash as unsigned Signed-off-by: Roman Mashak Signed-off-by: Jamal Hadi Salim --- diff --git a/tc/m_ife.c b/tc/m_ife.c index a5a7516d8..588bad7fd 100644 --- a/tc/m_ife.c +++ b/tc/m_ife.c @@ -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 "); }