From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: [PATCH 2/9] pci-assign: Fix warnings with DEBUG enabled Date: Sat, 28 Jan 2012 07:21:46 -0700 Message-ID: <20120128142146.25681.87806.stgit@bling.home> References: <20120128142104.25681.93072.stgit@bling.home> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: alex.williamson@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]:55683 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753514Ab2A1OVt (ORCPT ); Sat, 28 Jan 2012 09:21:49 -0500 In-Reply-To: <20120128142104.25681.93072.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 07ae0a0..b176375 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -75,7 +75,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", @@ -87,14 +87,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: @@ -119,7 +119,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); } }