summaryrefslogtreecommitdiff
path: root/tc/m_csum.c
diff options
context:
space:
mode:
authorRoman Mashak <mrv@mojatatu.com>2016-12-13 15:31:16 -0500
committerStephen Hemminger <stephen@networkplumber.org>2016-12-14 19:00:36 -0800
commit530753184a21684c600ca137c123a5740817e570 (patch)
tree7e705e30b3f74afd69d738f12802421c579f3d5f /tc/m_csum.c
parentab91aee4b0b5a8fa7bef078ffe84342bc17830b2 (diff)
downloadiproute2-530753184a21684c600ca137c123a5740817e570.tar.gz
tc: pass correct conversion specifier to print 'unsigned int' action index.
Signed-off-by: Roman Mashak <mrv@mojatatu.com> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Diffstat (limited to 'tc/m_csum.c')
-rw-r--r--tc/m_csum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tc/m_csum.c b/tc/m_csum.c
index a6e4c1eb..d5b1af6f 100644
--- a/tc/m_csum.c
+++ b/tc/m_csum.c
@@ -199,7 +199,8 @@ print_csum(struct action_util *au, FILE *f, struct rtattr *arg)
uflag_1, uflag_2, uflag_3,
uflag_4, uflag_5, uflag_6,
action_n2a(sel->action));
- fprintf(f, "\tindex %d ref %d bind %d", sel->index, sel->refcnt, sel->bindcnt);
+ fprintf(f, "\tindex %u ref %d bind %d", sel->index, sel->refcnt,
+ sel->bindcnt);
if (show_stats) {
if (tb[TCA_CSUM_TM]) {