aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2025-11-10 12:46:55 +0100
committerKarel Zak <kzak@redhat.com>2025-11-10 12:46:55 +0100
commita4d8a0dc9bdb2cf19602b1cc20acf91c0333829c (patch)
tree02f749b5f2df0a9fbffd993fc082529e6723ee30
parent08e3cfc503b1a773868b0f354211b1d6e7029a64 (diff)
parent5bbe47432f98a7e391da04157af9906832058ef7 (diff)
downloadutil-linux-a4d8a0dc9bdb2cf19602b1cc20acf91c0333829c.tar.gz
Merge branch 'lsfd--netlink-lport-data-size' of https://github.com/masatake/util-linux
* 'lsfd--netlink-lport-data-size' of https://github.com/masatake/util-linux: lsfd: (bugfix) use PRIu32 for prining lport of netlink socket
-rw-r--r--lsfd-cmd/sock-xinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsfd-cmd/sock-xinfo.c b/lsfd-cmd/sock-xinfo.c
index 6803300cb8..78986eb467 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;