From: "Andreas Färber" <andreas.faerber@web.de>
To: Stefan Weil <sw@weilnetz.de>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] darwin-user: Fix format string in debug message
Date: Mon, 21 Nov 2011 14:32:24 +0100 [thread overview]
Message-ID: <4ECA52E8.6050801@web.de> (raw)
In-Reply-To: <1321730319-21498-1-git-send-email-sw@weilnetz.de>
Am 19.11.2011 20:18, schrieb Stefan Weil:
> This was spotted by cppcheck.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> darwin-user/signal.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/darwin-user/signal.c b/darwin-user/signal.c
> index c530227..317ef92 100644
> --- a/darwin-user/signal.c
> +++ b/darwin-user/signal.c
> @@ -270,8 +270,7 @@ int do_sigaction(int sig, const struct sigaction *act,
> host_sig = target_to_host_signal(sig);
> if (host_sig != SIGSEGV && host_sig != SIGBUS) {
> #if defined(DEBUG_SIGNAL)
> - fprintf(stderr, "sigaction handler going to call sigaction\n",
> - act->sa_handler, act->sa_flags, act->sa_mask);
> + fprintf(stderr, "sigaction handler going to call sigaction\n");
> #endif
>
> sigfillset(&act1.sa_mask);
Is the debug output really useful without the information? Maybe rather
append %p %x %x? What does linux-user do?
Andreas
next prev parent reply other threads:[~2011-11-21 13:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-19 19:18 [Qemu-devel] [PATCH] darwin-user: Fix format string in debug message Stefan Weil
2011-11-21 13:32 ` Andreas Färber [this message]
2011-11-21 13:41 ` Peter Maydell
2011-11-22 10:43 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
2011-11-22 10:57 ` Peter Maydell
2011-11-22 11:41 ` Stefan Hajnoczi
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=4ECA52E8.6050801@web.de \
--to=andreas.faerber@web.de \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=sw@weilnetz.de \
/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).