]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iplink_can: fix format output of clock with flag -details
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 26 Jul 2019 13:06:09 +0000 (15:06 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 26 Jul 2019 22:05:20 +0000 (15:05 -0700)
The command
ip -details link show can0
prints in the last line the value of the clock frequency attached
to the name of the following value "numtxqueues", e.g.
clock 49500000numtxqueues 1 numrxqueues 1 gso_max_size
 65536 gso_max_segs 65535

Add the missing space after the clock value.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
ip/iplink_can.c

index 5bf490a9d1c3f1e9d33c09ae10bf81b65cec1619..735ab94122e0d566894c41044ba3d6e07f6386dc 100644 (file)
@@ -545,7 +545,7 @@ static void can_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
 
                print_int(PRINT_ANY,
                          "clock",
-                         "\n     clock %d",
+                         "\n     clock %d ",
                          clock->freq);
        }