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
This commit is contained in:
Michał Grzelak 2022-09-28 12:36:53 +02:00 committed by Kornel Dulęba
parent 1ed7916188
commit ee0d06faa0

View File

@ -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));