diff mbox series

[iproute2-next,4/4] ss: print unix socket "ports" as unsigned int (inode)

Message ID 20230808214258.975440-4-mathieu@schroetersa.ch (mailing list archive)
State Accepted
Commit e12d0c929cf5f4266f745063696dd291cb6f06a4
Delegated to: David Ahern
Headers show
Series [iproute2-next,1/4] Add get_long utility and adapt get_integer accordingly | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Mathieu Schroeter Aug. 8, 2023, 9:42 p.m. UTC
Signed-off-by: Mathieu Schroeter <mathieu@schroetersa.ch>
---
 misc/ss.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/misc/ss.c b/misc/ss.c
index baa83514..13b2523f 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -4073,9 +4073,9 @@  static void unix_stats_print(struct sockstat *s, struct filter *f)
 	sock_state_print(s);
 
 	sock_addr_print(s->name ?: "*", " ",
-			int_to_str(s->lport, port_name), NULL);
+			uint_to_str(s->lport, port_name), NULL);
 	sock_addr_print(s->peer_name ?: "*", " ",
-			int_to_str(s->rport, port_name), NULL);
+			uint_to_str(s->rport, port_name), NULL);
 
 	proc_ctx_print(s);
 }