From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8USz-0005Ci-6c for qemu-devel@nongnu.org; Fri, 16 Mar 2012 06:33:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8USp-0005u0-N6 for qemu-devel@nongnu.org; Fri, 16 Mar 2012 06:33:00 -0400 Message-ID: <4F6316D0.6010105@suse.de> Date: Fri, 16 Mar 2012 11:32:48 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <20120316091044.6166.86916.stgit@amd-6168-8-1.englab.nay.redhat.com> In-Reply-To: <20120316091044.6166.86916.stgit@amd-6168-8-1.englab.nay.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RESEND PATCH] ioapic: fix build with DEBUG_IOAPIC List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com Am 16.03.2012 10:10, schrieb Jason Wang: > ioapic.c:198: error: format =E2=80=98%08x=E2=80=99 expects type =E2=80=98= unsigned int=E2=80=99, but argument 3 has type =E2=80=98uint64_t=E2=80=99 >=20 > Signed-off-by: Jason Wang PRIx64 is indeed needed here. However, this drops the 08 without mention in the commit message - was it intended? Andreas > --- > hw/ioapic.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >=20 > diff --git a/hw/ioapic.c b/hw/ioapic.c > index 3fee011..1ff31a1 100644 > --- a/hw/ioapic.c > +++ b/hw/ioapic.c > @@ -195,7 +195,7 @@ ioapic_mem_write(void *opaque, target_phys_addr_t a= ddr, uint64_t val, > if (size !=3D 4) { > break; > } > - DPRINTF("write: %08x =3D %08x\n", s->ioregsel, val); > + DPRINTF("write: %08x =3D %" PRIx64 "\n", s->ioregsel, val); > switch (s->ioregsel) { > case IOAPIC_REG_ID: > s->id =3D (val >> IOAPIC_ID_SHIFT) & IOAPIC_ID_MASK; --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg