Comply with POSIX rules:

o Use %u for printing u_int.
    o Cast sizeof() to u_long, and print with %lu

Reviewed by: wollman
This commit is contained in:
Jonathan Lemon 2001-06-16 18:55:13 +00:00
parent 1c8d1174b7
commit 2b4aa63478
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78357

View File

@ -485,8 +485,8 @@ rarp_check(u_char *p, u_int len)
struct ether_arp *ap = (struct ether_arp *)(p + sizeof(*ep));
if (len < sizeof(*ep) + sizeof(*ap)) {
syslog(LOG_ERR, "truncated request, got %d, expected %d",
len, (int)(sizeof(*ep) + sizeof(*ap)));
syslog(LOG_ERR, "truncated request, got %u, expected %lu",
len, (u_long)(sizeof(*ep) + sizeof(*ap)));
return 0;
}
/*