diff options
author | jhb <jhb@FreeBSD.org> | 2010-08-11 16:56:38 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-08-11 16:56:38 +0000 |
commit | 6ee4bb3af6053dd233954048abe04480b15442c1 (patch) | |
tree | 751a92e77ae87a4d7ab9a426f2093cbbf394a2f5 | |
parent | e8a386be415da9b15f7252afb9822743a057568f (diff) | |
download | FreeBSD-src-6ee4bb3af6053dd233954048abe04480b15442c1.zip FreeBSD-src-6ee4bb3af6053dd233954048abe04480b15442c1.tar.gz |
Do not use %z to print a time_t. Fixes build on architectures where time_t
and size_t are different types.
-rw-r--r-- | sys/dev/iscsi/initiator/iscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iscsi/initiator/iscsi.c b/sys/dev/iscsi/initiator/iscsi.c index b44c4f7..2eee812 100644 --- a/sys/dev/iscsi/initiator/iscsi.c +++ b/sys/dev/iscsi/initiator/iscsi.c @@ -306,11 +306,11 @@ iscsi_read(struct cdev *dev, struct uio *uio, int ioflag) int i = 0; struct socket *so = sp->soc; #define pukeit(i, pq) do {\ - sprintf(buf, "%03d] %06x %02x %06x %06x %zd\n",\ + sprintf(buf, "%03d] %06x %02x %06x %06x %jd\n",\ i, ntohl(pq->pdu.ipdu.bhs.CmdSN),\ pq->pdu.ipdu.bhs.opcode, ntohl(pq->pdu.ipdu.bhs.itt),\ ntohl(pq->pdu.ipdu.bhs.ExpStSN),\ - pq->ts.sec);\ + (intmax_t)pq->ts.sec);\ } while(0) sprintf(buf, "%d/%d /---- hld -----/\n", sp->stats.nhld, sp->stats.max_hld); |