git: 79111aa26f8b - main - netstat: fix format string on 32-bit archs

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Fri, 27 Jan 2023 17:45:56 UTC
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=79111aa26f8b33a6f4870d2666aa6e9b9d2fdc15

commit 79111aa26f8b33a6f4870d2666aa6e9b9d2fdc15
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-01-27 17:45:19 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-01-27 17:45:49 +0000

    netstat: fix format string on 32-bit archs
---
 usr.bin/netstat/route_netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/netstat/route_netlink.c b/usr.bin/netstat/route_netlink.c
index 7c0ac8fea30c..e4a56af4b8a9 100644
--- a/usr.bin/netstat/route_netlink.c
+++ b/usr.bin/netstat/route_netlink.c
@@ -129,7 +129,7 @@ prepare_ifmap_netlink(struct snl_state *ss, size_t *pifmap_size)
 		if (link.ifi_index >= ifmap_size) {
 			size_t size = roundup2(link.ifi_index + 1, 32) * sizeof(struct ifmap_entry);
 			if ((ifmap = realloc(ifmap, size)) == NULL)
-				errx(2, "realloc(%lu) failed", size);
+				errx(2, "realloc(%zu) failed", size);
 			memset(&ifmap[ifmap_size], 0,
 			    size - ifmap_size *
 			    sizeof(struct ifmap_entry));