From: Stephen Hemminger <sthem...@microsoft.com>

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 tc/q_fifo.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/tc/q_fifo.c b/tc/q_fifo.c
index 5fd6c1b1107d..65a7b0e218f2 100644
--- a/tc/q_fifo.c
+++ b/tc/q_fifo.c
@@ -67,11 +67,10 @@ static int fifo_print_opt(struct qdisc_util *qu, FILE *f, 
struct rtattr *opt)
        if (RTA_PAYLOAD(opt)  < sizeof(*qopt))
                return -1;
        qopt = RTA_DATA(opt);
-       if (strcmp(qu->id, "bfifo") == 0) {
-               SPRINT_BUF(b1);
-               fprintf(f, "limit %s", sprint_size(qopt->limit, b1));
-       } else
-               fprintf(f, "limit %up", qopt->limit);
+       if (strcmp(qu->id, "bfifo") == 0)
+               print_size("limit", "limit %s", qopt->limit);
+       else
+               print_uint(PRINT_ANY, "limit", "limit %up", qopt->limit);
        return 0;
 }
 
-- 
2.18.0

Reply via email to