[PATCH] ip: add comma separator before unknown link flags field

Jonah Petri jonah at petri.us
Tue Jul 30 15:29:55 UTC 2019


Unknown interface link flags are currently rendered without a comma separator:
  eth0: <BROADCAST,MULTICAST,UP,LOWER_UP8000>

This adds a comma before the "8000", in the above example.
---
 networking/libiproute/ipaddress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 86cf3beea..5958da988 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -71,7 +71,7 @@ static void print_link_flags(unsigned flags, unsigned mdown)
 #endif
 	flags = print_flags_separated(flag_masks, flag_labels, flags, ",");
 	if (flags)
-		printf("%x", flags);
+		printf(",%x", flags);
 	if (mdown)
 		printf(",M-DOWN");
 	printf("> ");
-- 
2.14.3




More information about the busybox mailing list