From 5bbe47432f98a7e391da04157af9906832058ef7 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Sat, 8 Nov 2025 11:42:31 +0900 Subject: [PATCH] lsfd: (bugfix) use PRIu32 for prining lport of netlink socket Fixes #3849 Signed-off-by: Masatake YAMATO --- lsfd-cmd/sock-xinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsfd-cmd/sock-xinfo.c b/lsfd-cmd/sock-xinfo.c index 6803300cb..78986eb46 100644 --- a/lsfd-cmd/sock-xinfo.c +++ b/lsfd-cmd/sock-xinfo.c @@ -2127,11 +2127,11 @@ static char *netlink_get_name(struct sock_xinfo *sock_xinfo, const char *protocol = netlink_decode_protocol(nl->protocol); if (nl->groups) - xasprintf(&str, "protocol=%s lport=%"PRIu16 " groups=%"PRIu32, + xasprintf(&str, "protocol=%s lport=%"PRIu32 " groups=%"PRIu32, protocol, nl->lportid, nl->groups); else - xasprintf(&str, "protocol=%s lport=%"PRIu16, + xasprintf(&str, "protocol=%s lport=%"PRIu32, protocol, nl->lportid); return str; -- 2.47.3