Skip to contentSkip to conversation

iplink_can: fix format output of clock with flag -details

PATCH Applied Antonio Borneo 2 participants 2 messages Jul 26, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iplink_can: fix format output of clock with flag -details

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.

---
 ip/iplink_can.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
ip/iplink_can.c +1 -1
index 5bf490a9..735ab941 100644
@@ -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);
 	}
 
Signature · 1 line
2.22.0
#1 lore raw
Quoted 10 lines · On Fri, 26 Jul 2019 15:06:09 +0200 Antonio Borneo <[email protected]>…

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.

Applied, but CAN looks like it doesn't support single line output correctly.