From 1ed7916188b5a9684414387ff88829b304a858ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= Date: Wed, 28 Sep 2022 12:34:55 +0200 Subject: [PATCH] libsa/rarp.c: Change printf format string Change printf format string to avoid compilation failure when RARP_DEBUG macro is defined. Reviewed by: imp Obtained from: Semihalf Differential Revision: https://reviews.freebsd.org/D36739 --- stand/libsa/rarp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/libsa/rarp.c b/stand/libsa/rarp.c index a81994e51b5c..27123e793b99 100644 --- a/stand/libsa/rarp.c +++ b/stand/libsa/rarp.c @@ -161,7 +161,7 @@ rarprecv(struct iodesc *d, void **pkt, void **payload, time_t tleft, if (n == -1 || n < sizeof(struct ether_arp)) { #ifdef RARP_DEBUG if (debug) - printf("bad len=%d\n", n); + printf("bad len=%zd\n", n); #endif free(ptr); return (-1);