svn commit: r211182 - head/sys/dev/iscsi/initiator

John Baldwin jhb at FreeBSD.org
Wed Aug 11 16:56:38 UTC 2010


Author: jhb
Date: Wed Aug 11 16:56:38 2010
New Revision: 211182
URL: http://svn.freebsd.org/changeset/base/211182

Log:
  Do not use %z to print a time_t.  Fixes build on architectures where time_t
  and size_t are different types.

Modified:
  head/sys/dev/iscsi/initiator/iscsi.c

Modified: head/sys/dev/iscsi/initiator/iscsi.c
==============================================================================
--- head/sys/dev/iscsi/initiator/iscsi.c	Wed Aug 11 16:53:45 2010	(r211181)
+++ head/sys/dev/iscsi/initiator/iscsi.c	Wed Aug 11 16:56:38 2010	(r211182)
@@ -306,11 +306,11 @@ iscsi_read(struct cdev *dev, struct uio 
 	  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);


More information about the svn-src-all mailing list