From e12d0c929cf5f4266f745063696dd291cb6f06a4 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 8 Aug 2023 23:42:58 +0200 Subject: [PATCH] ss: print unix socket "ports" as unsigned int (inode) Signed-off-by: Mathieu Schroeter Signed-off-by: David Ahern --- misc/ss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/ss.c b/misc/ss.c index baa835149..13b2523f4 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); } -- 2.47.2