diff options
| author | Karel Zak <kzak@redhat.com> | 2025-11-10 12:46:55 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2025-11-10 12:46:55 +0100 |
| commit | a4d8a0dc9bdb2cf19602b1cc20acf91c0333829c (patch) | |
| tree | 02f749b5f2df0a9fbffd993fc082529e6723ee30 | |
| parent | 08e3cfc503b1a773868b0f354211b1d6e7029a64 (diff) | |
| parent | 5bbe47432f98a7e391da04157af9906832058ef7 (diff) | |
| download | util-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.c | 4 |
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; |
