Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2013 00:37:00 +0000 (UTC)
From:      Jim Harris <jimharris@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248780 - head/sys/dev/nvme
Message-ID:  <201303270037.r2R0b0Qa076950@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303270037.r2R0b0Qa076950>