From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jamal Hadi Salim Subject: [PATCH iproute2 2/9] ife: print prio, mark and hash as unsigned Date: Sat, 1 Oct 2016 16:48:30 -0400 Message-ID: <1475354917-7912-3-git-send-email-jhs@emojatatu.com> References: <1475354917-7912-1-git-send-email-jhs@emojatatu.com> Cc: netdev@vger.kernel.org, Roman Mashak , Jamal Hadi Salim To: stephen@networkplumber.org Return-path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:32819 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817AbcJAUtQ (ORCPT ); Sat, 1 Oct 2016 16:49:16 -0400 Received: by mail-pf0-f194.google.com with SMTP id q2so6601775pfj.0 for ; Sat, 01 Oct 2016 13:48:51 -0700 (PDT) In-Reply-To: <1475354917-7912-1-git-send-email-jhs@emojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Roman Mashak Signed-off-by: Roman Mashak Signed-off-by: Jamal Hadi Salim --- tc/m_ife.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tc/m_ife.c b/tc/m_ife.c index a5a7516..588bad7 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 "); } -- 1.9.1