Date: Sun, 22 May 2016 07:39:25 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r300404 - projects/vmware_pvscsi/sys/dev/vmware/vmw_pvscsi Message-ID: <201605220739.u4M7dPMg080992@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605220739.u4M7dPMg080992>