svn commit: r300404 - projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi

Garrett Cooper ngie at FreeBSD.org
Sun May 22 07:39:26 UTC 2016


Author: ngie
Date: Sun May 22 07:39:25 2016
New Revision: 300404
URL: https://svnweb.freebsd.org/changeset/base/300404

Log:
  Fix i386 compilation by casting longs to *intmax_t type and using appropriate
  %j* format specifiers

Modified:
  projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/vmw_pvscsi.c

Modified: projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/vmw_pvscsi.c
==============================================================================
--- projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/vmw_pvscsi.c	Sun May 22 07:33:19 2016	(r300403)
+++ projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi/vmw_pvscsi.c	Sun May 22 07:39:25 2016	(r300404)
@@ -1100,7 +1100,7 @@ pvscsi_scsiio_timeout(void *data)
 
 	getmicrotime(&tv);
 	device_printf(pvscsi_dev(adapter), "SCSI IO TIMEOUT ctx>%p ccb>%p at "
-		"%ld.%06ld\n", ctx, ctx->cmd, tv.tv_sec, tv.tv_usec);
+		"%jd.%06ld\n", ctx, ctx->cmd, (intmax_t)tv.tv_sec, tv.tv_usec);
 
 	/* Update the targ_t from the targ array with the TO info */
 	targ = adapter->pvs_tarrg + ctx->cmd->ccb_h.target_id;
@@ -2280,8 +2280,8 @@ pvscsi_action(struct cam_sim *psim, unio
 			target_id_t trg = pccb->ccb_h.target_id;
 
 			if (pccb->ccb_h.target_lun) {
-				device_printf(device, "Non-zero LU number %lu\n",
-						pccb->ccb_h.target_lun);
+				device_printf(device, "Non-zero LU number %ju\n",
+				    (uintmax_t)pccb->ccb_h.target_lun);
 				pccb->ccb_h.status = CAM_LUN_INVALID;
 				xpt_done(pccb);
 				break;


More information about the svn-src-projects mailing list