darwin-user: Fix format string in debug message
PATCH 1/1 darwin-user: Fix format string in debug message
This was spotted by cppcheck.
--- darwin-user/signal.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
darwin-user/signal.c +1 -2
@@ -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);
Signature · 1 line
1.7.2.5
Am 19.11.2011 20:18, schrieb Stefan Weil:
Quoted 12 lines
This was spotted by cppcheck.
Signed-off-by Stefan Weil <[email protected]>--- darwin-user/signal.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)darwin-user/signal.c +0
-0
darwin-user/signal.c int do_sigaction(int sig, const struct sigaction *act, · line 276
Quoted 9 lines
darwin-user/signal.c +1
-2@@ -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
Quoted 2 lines · Andreas Färber
Is the debug output really useful without the information? Maybe rather append %p %x %x? What does linux-user do?
linux-user doesn't print any debug output at this point.
Incidentally, I'm increasingly of the opinion that the various minor foo-user subtrees would be better off merged into a single user tree:
there is a steady stream of minor bugfixes/feature improvements that go into linux-user that don't get into the others...
-- PMM
Quoted 6 lines · Stefan Weil
This was spotted by cppcheck.
Signed-off-by Stefan Weil <[email protected]>--- darwin-user/signal.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
I am waiting to see if you send a v2 or this thread continues. Not applied to trivial-patches.
Stefan
Peter Maydell
Reviewed-byQuoted 10 lines · Stefan Hajnoczi
Quoted 6 lines · Stefan Weil
This was spotted by cppcheck.
Signed-off-by Stefan Weil <[email protected]>---
darwin-user/signal.c | 3 +--1 files changed, 1 insertions(+), 2 deletions(-)I am waiting to see if you send a v2 or this thread continues. Not applied to trivial-patches.
FWIW I think the patch as it is is fine. We have already printed sa_handler &c in the immediately preceding line of debug output so there's nothing gained from printing them again; probably it was a stray cut-n-paste error in the first place.
-- PMM
Stefan Hajnoczi
AppliedQuoted 6 lines · Stefan Weil
This was spotted by cppcheck.
Signed-off-by Stefan Weil <[email protected]>--- darwin-user/signal.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
Thanks, applied to the trivial patches -next tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches-next
Stefan