1
0
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:
John Baldwin 2005-05-31 20:01:58 +00:00
parent 7ab17e6d01
commit ac0a0594f6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146835
2 changed files with 2 additions and 2 deletions

View File

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

View File

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