Date: Tue, 24 Jan 2023 22:12:44 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 48558b24a0a7 - stable/13 - libsa/rarp.c: Change printf format string Message-ID: <202301242212.30OMCiB3087461@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=48558b24a0a7d5afa2779a80b6595e889f64a08e commit 48558b24a0a7d5afa2779a80b6595e889f64a08e Author: MichaĆ Grzelak <mig@semihalf.com> AuthorDate: 2022-09-28 10:34:55 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-24 21:49:35 +0000 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 (cherry picked from commit 1ed7916188b5a9684414387ff88829b304a858ae) --- 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301242212.30OMCiB3087461>