qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] mipsnet: Fix compiler warning in debug code
@ 2010-09-30 19:33 Stefan Weil
  2010-10-03  7:50 ` [Qemu-devel] " Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2010-09-30 19:33 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Blue Swirl

size_t needs a different format specifier, so fix this.

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 hw/mipsnet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/mipsnet.c b/hw/mipsnet.c
index a95b3ce..c5e54ff 100644
--- a/hw/mipsnet.c
+++ b/hw/mipsnet.c
@@ -81,7 +81,7 @@ static ssize_t mipsnet_receive(VLANClientState *nc, const uint8_t *buf, size_t s
     MIPSnetState *s = DO_UPCAST(NICState, nc, nc)->opaque;
 
 #ifdef DEBUG_MIPSNET_RECEIVE
-    printf("mipsnet: receiving len=%d\n", size);
+    printf("mipsnet: receiving len=%zu\n", size);
 #endif
     if (!mipsnet_can_receive(nc))
         return -1;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Qemu-devel] Re: [PATCH] mipsnet: Fix compiler warning in debug code
  2010-09-30 19:33 [Qemu-devel] [PATCH] mipsnet: Fix compiler warning in debug code Stefan Weil
@ 2010-10-03  7:50 ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2010-10-03  7:50 UTC (permalink / raw)
  To: Stefan Weil; +Cc: QEMU Developers

Thanks, applied.

On Thu, Sep 30, 2010 at 7:33 PM, Stefan Weil <weil@mail.berlios.de> wrote:
> size_t needs a different format specifier, so fix this.
>
> Cc: Blue Swirl <blauwirbel@gmail.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
>  hw/mipsnet.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/mipsnet.c b/hw/mipsnet.c
> index a95b3ce..c5e54ff 100644
> --- a/hw/mipsnet.c
> +++ b/hw/mipsnet.c
> @@ -81,7 +81,7 @@ static ssize_t mipsnet_receive(VLANClientState *nc, const uint8_t *buf, size_t s
>     MIPSnetState *s = DO_UPCAST(NICState, nc, nc)->opaque;
>
>  #ifdef DEBUG_MIPSNET_RECEIVE
> -    printf("mipsnet: receiving len=%d\n", size);
> +    printf("mipsnet: receiving len=%zu\n", size);
>  #endif
>     if (!mipsnet_can_receive(nc))
>         return -1;
> --
> 1.7.1
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-03  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 19:33 [Qemu-devel] [PATCH] mipsnet: Fix compiler warning in debug code Stefan Weil
2010-10-03  7:50 ` [Qemu-devel] " Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).