From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV2ms-0006Eb-A1 for qemu-devel@nongnu.org; Tue, 01 Apr 2014 13:47:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV2mk-0004ki-01 for qemu-devel@nongnu.org; Tue, 01 Apr 2014 13:47:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV2mj-0004kZ-MY for qemu-devel@nongnu.org; Tue, 01 Apr 2014 13:47:41 -0400 Date: Tue, 1 Apr 2014 18:47:35 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20140401174735.GW2411@work-vm> References: <1396371187-8567-1-git-send-email-peter.maydell@linaro.org> <1396371187-8567-6-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1396371187-8567-6-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH 5/5] hw/net/stellaris_enet: Fix debug format strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: patches@linaro.org, qemu-devel@nongnu.org, "Michael S. Tsirkin" * Peter Maydell (peter.maydell@linaro.org) wrote: > Fix various debug format strings which were incorrect for the > data type, so that building with debug enabled is possible. > > Signed-off-by: Peter Maydell Reviewed-by: Dr. David Alan Gilbert > --- > hw/net/stellaris_enet.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c > index 0210108..db20b05 100644 > --- a/hw/net/stellaris_enet.c > +++ b/hw/net/stellaris_enet.c > @@ -161,7 +161,7 @@ static ssize_t stellaris_enet_receive(NetClientState *nc, const uint8_t *buf, si > return -1; > } > > - DPRINTF("Received packet len=%d\n", size); > + DPRINTF("Received packet len=%zu\n", size); > n = s->next_packet + s->np; > if (n >= 31) > n -= 31; > @@ -276,7 +276,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset, > switch (offset) { > case 0x00: /* IACK */ > s->ris &= ~value; > - DPRINTF("IRQ ack %02x/%02x\n", value, s->ris); > + DPRINTF("IRQ ack %02" PRIx64 "/%02x\n", value, s->ris); > stellaris_enet_update(s); > /* Clearing TXER also resets the TX fifo. */ > if (value & SE_INT_TXER) { > @@ -284,7 +284,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset, > } > break; > case 0x04: /* IM */ > - DPRINTF("IRQ mask %02x/%02x\n", value, s->ris); > + DPRINTF("IRQ mask %02" PRIx64 "/%02x\n", value, s->ris); > s->im = value; > stellaris_enet_update(s); > break; > -- > 1.9.0 > > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK