mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Use %z to print size_t values.
This commit is contained in:
parent
7ab17e6d01
commit
ac0a0594f6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146835
@ -101,7 +101,7 @@ sendrecv(d, sproc, sbuf, ssize, rproc, rbuf, rsize)
|
||||
}
|
||||
cc = (*sproc)(d, sbuf, ssize);
|
||||
if (cc != -1 && cc < ssize)
|
||||
panic("sendrecv: short write! (%d < %d)",
|
||||
panic("sendrecv: short write! (%zd < %zd)",
|
||||
cc, ssize);
|
||||
|
||||
tleft = tmo;
|
||||
|
@ -128,7 +128,7 @@ sendudp(d, pkt, len)
|
||||
if (cc == -1)
|
||||
return (-1);
|
||||
if (cc != len)
|
||||
panic("sendudp: bad write (%d != %d)", cc, len);
|
||||
panic("sendudp: bad write (%zd != %zd)", cc, len);
|
||||
return (cc - (sizeof(*ip) + sizeof(*uh)));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user