From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: [PATCH v2 1/8] pci-assign: Fix warnings with DEBUG enabled Date: Tue, 31 Jan 2012 22:32:22 -0700 Message-ID: <20120201053222.9843.3297.stgit@bling.home> References: <20120201052203.9843.80792.stgit@bling.home> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: alex.williamson@redhat.com, avi@redhat.com, mst@redhat.com, jan.kiszka@siemens.com, shashidhar.patil@gmail.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:50974 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752585Ab2BAFc1 (ORCPT ); Wed, 1 Feb 2012 00:32:27 -0500 In-Reply-To: <20120201052203.9843.80792.stgit@bling.home> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Alex Williamson --- hw/device-assignment.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index 7f4a5ec..d82f274 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -74,7 +74,7 @@ static uint64_t assigned_dev_ioport_rw(AssignedDevRegion *dev_region, if (fd >= 0) { if (data) { - DEBUG("pwrite data=%x, size=%d, e_phys=%x, addr=%x\n", + DEBUG("pwrite data=%lx, size=%d, e_phys=%lx, addr=%lx\n", *data, size, addr, addr); if (pwrite(fd, data, size, addr) != size) { fprintf(stderr, "%s - pwrite failed %s\n", @@ -86,14 +86,14 @@ static uint64_t assigned_dev_ioport_rw(AssignedDevRegion *dev_region, __func__, strerror(errno)); val = (1UL << (size * 8)) - 1; } - DEBUG("pread val=%x, size=%d, e_phys=%x, addr=%x\n", + DEBUG("pread val=%lx, size=%d, e_phys=%lx, addr=%lx\n", val, size, addr, addr); } } else { uint32_t port = addr + dev_region->u.r_baseport; if (data) { - DEBUG("out data=%x, size=%d, e_phys=%x, host=%x\n", + DEBUG("out data=%lx, size=%d, e_phys=%lx, host=%x\n", *data, size, addr, port); switch (size) { case 1: @@ -118,7 +118,7 @@ static uint64_t assigned_dev_ioport_rw(AssignedDevRegion *dev_region, val = inl(port); break; } - DEBUG("in data=%x, size=%d, e_phys=%x, host=%x\n", + DEBUG("in data=%lx, size=%d, e_phys=%lx, host=%x\n", val, size, addr, port); } }