git: a6da4548613b - stable/13 - libsa/rarp.c: Change casted type and printf format
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:12:46 UTC
The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=a6da4548613bed77fa940ee0e3bd1424f461274f commit a6da4548613bed77fa940ee0e3bd1424f461274f Author: MichaĆ Grzelak <mig@semihalf.com> AuthorDate: 2022-09-28 10:36:53 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-01-24 21:49:35 +0000 libsa/rarp.c: Change casted type and printf format Change the casted type and 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/D36738 (cherry picked from commit ee0d06faa0a5b0e551cac4cfcad68062cb3257c7) --- 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 27123e793b99..72aa2650f15e 100644 --- a/stand/libsa/rarp.c +++ b/stand/libsa/rarp.c @@ -83,7 +83,7 @@ rarp_getipaddress(int sock) } #ifdef RARP_DEBUG if (debug) - printf("rarp: d=%x\n", (u_int)d); + printf("rarp: d=%lx\n", (long)d); #endif bzero((char*)&wbuf.data, sizeof(wbuf.data));