svn commit: r248780 - head/sys/dev/nvme
Jim Harris
jimharris at FreeBSD.org
Wed Mar 27 00:37:01 UTC 2013
Author: jimharris
Date: Wed Mar 27 00:37:00 2013
New Revision: 248780
URL: http://svnweb.freebsd.org/changeset/base/248780
Log:
Fix printf format issue on i386.
Reported by: bz
Modified:
head/sys/dev/nvme/nvme_qpair.c
Modified: head/sys/dev/nvme/nvme_qpair.c
==============================================================================
--- head/sys/dev/nvme/nvme_qpair.c Wed Mar 27 00:35:45 2013 (r248779)
+++ head/sys/dev/nvme/nvme_qpair.c Wed Mar 27 00:37:00 2013 (r248780)
@@ -125,9 +125,10 @@ nvme_io_qpair_print_command(struct nvme_
case NVME_OPC_WRITE_UNCORRECTABLE:
case NVME_OPC_COMPARE:
nvme_printf(qpair->ctrlr, "%s sqid:%d cid:%d nsid:%d "
- "lba:%lu len:%d\n",
+ "lba:%llu len:%d\n",
get_io_opcode_string(cmd->opc), qpair->id, cmd->cid,
- cmd->nsid, ((uint64_t)cmd->cdw11 << 32) | cmd->cdw10,
+ cmd->nsid,
+ ((unsigned long long)cmd->cdw11 << 32) + cmd->cdw10,
(cmd->cdw12 & 0xFFFF) + 1);
break;
case NVME_OPC_FLUSH:
More information about the svn-src-head
mailing list