git: 285714ea7a21 - stable/13 - libsa/arp.c: Change printf format string
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:12:47 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=285714ea7a2194c84cdf4d23a0b92973511040f6
commit 285714ea7a2194c84cdf4d23a0b92973511040f6
Author: MichaĆ Grzelak <mig@semihalf.com>
AuthorDate: 2022-09-29 05:22:47 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:35 +0000
libsa/arp.c: Change printf format string
Change printf format string to avoid compilation failure when
ARP_DEBUG macro is defined.
Reviewed by: imp
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D36735
(cherry picked from commit c66c6da4f08187deab6a30d4aeb4d6e82088a046)
---
stand/libsa/arp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stand/libsa/arp.c b/stand/libsa/arp.c
index 7d49559b4e04..9152cb2773dd 100644
--- a/stand/libsa/arp.c
+++ b/stand/libsa/arp.c
@@ -178,7 +178,7 @@ arprecv(struct iodesc *d, void **pkt, void **payload, time_t tleft, void *extra)
if (n == -1 || n < sizeof(struct ether_arp)) {
#ifdef ARP_DEBUG
if (debug)
- printf("bad len=%d\n", n);
+ printf("bad len=%zd\n", n);
#endif
free(ptr);
return (-1);