diff options
author | jhb <jhb@FreeBSD.org> | 2005-05-31 20:01:58 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-05-31 20:01:58 +0000 |
commit | 1321d1acd59c97c3c2dae9fe21faa1142f91871a (patch) | |
tree | f4d9f60bade3ec3121e8a03d24d7f6453d54dfc7 | |
parent | 6e02a9d126bc759762d46fa9aaf9c986eb57cd35 (diff) | |
download | FreeBSD-src-1321d1acd59c97c3c2dae9fe21faa1142f91871a.zip FreeBSD-src-1321d1acd59c97c3c2dae9fe21faa1142f91871a.tar.gz |
Use %z to print size_t values.
-rw-r--r-- | lib/libstand/net.c | 2 | ||||
-rw-r--r-- | lib/libstand/udp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/net.c b/lib/libstand/net.c index 89ef12d..77cf891 100644 --- a/lib/libstand/net.c +++ b/lib/libstand/net.c @@ -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; diff --git a/lib/libstand/udp.c b/lib/libstand/udp.c index 4953932..5f4a5df 100644 --- a/lib/libstand/udp.c +++ b/lib/libstand/udp.c @@ -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))); } |