From: Stefan Weil <sw@weilnetz.de>
To: "Hervé Poussineau" <hpoussin@reactos.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Anthony Liguori <aliguori@us.ibm.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-1.5] osdep: fix qemu_anon_ram_free trace (+ fix compilation on 32 bit hosts)
Date: Mon, 20 May 2013 13:19:26 +0200 [thread overview]
Message-ID: <519A06BE.4010707@weilnetz.de> (raw)
In-Reply-To: <1369045989-14016-1-git-send-email-hpoussin@reactos.org>
Am 20.05.2013 12:33, schrieb Hervé Poussineau:
> Commit e7a09b92b70786f9e8c5fbf787e0248c6ebbe707 added a trace at each
> memory freeing, but unfortunately inverted size and pointer when printing
> them. Fix trace.
>
> This also led to a compilation error on 32 bit hosts:
> In file included from include/trace.h:4:0,
> from trace/generated-events.c:3:
> ./trace/generated-tracers.h: In function ‘trace_qemu_anon_ram_free’:
> ./trace/generated-tracers.h:64:9: error: format ‘%zu’ expects argument of type
> ‘size_t’, but argument 3 has type ‘void *’ [-Werror=format]
> ./trace/generated-tracers.h:64:9: error: format ‘%p’ expects argument of type
> ‘void *’, but argument 4 has type ‘size_t’ [-Werror=format]
>
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
> trace-events | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/trace-events b/trace-events
> index c03b9cb..9c73931 100644
> --- a/trace-events
> +++ b/trace-events
> @@ -34,7 +34,7 @@ g_free(void *ptr) "ptr %p"
> qemu_memalign(size_t alignment, size_t size, void *ptr) "alignment %zu size %zu ptr %p"
> qemu_anon_ram_alloc(size_t size, void *ptr) "size %zu ptr %p"
> qemu_vfree(void *ptr) "ptr %p"
> -qemu_anon_ram_free(void *ptr, size_t size) "size %zu ptr %p"
> +qemu_anon_ram_free(void *ptr, size_t size) "ptr %p size %zu"
>
> # hw/virtio.c
> virtqueue_fill(void *vq, const void *elem, unsigned int len, unsigned int idx) "vq %p elem %p len %u idx %u"
See http://patchwork.ozlabs.org/patch/244757/ which also fixes
that code.
Regards,
Stefan Weil
next prev parent reply other threads:[~2013-05-20 11:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-20 10:33 [Qemu-devel] [PATCH for-1.5] osdep: fix qemu_anon_ram_free trace (+ fix compilation on 32 bit hosts) Hervé Poussineau
2013-05-20 11:19 ` Stefan Weil [this message]
2013-05-22 22:58 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=519A06BE.4010707@weilnetz.de \
--to=sw@weilnetz.de \
--cc=aliguori@us.ibm.com \
--cc=hpoussin@reactos.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).