Skip to contentSkip to conversation

linux-user: Don't omit comma for strace of rt_sigaction()

PATCH Applied Peter Maydell 2 participants 2 messages Mar 28, 2013 – Apr 5, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: Don't omit comma for strace of rt_sigaction()

Pass the 'last' parameter of print_signal() through to print_raw_param(); this fixes a problem where we weren't printing the comma separator for strace of rt_sigaction() when the signal was an unnamed (ie realtime) one:
6856 rt_sigaction(230xf6fff870,0xf6fff8fc) = 0

---
 linux-user/strace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/strace.c +1 -1
index 0fbae3c..ea6c1d2 100644
@@ -143,7 +143,7 @@ print_signal(abi_ulong arg, int last)
     case TARGET_SIGTTOU: signal_name = "SIGTTOU"; break;
     }
     if (signal_name == NULL) {
-        print_raw_param("%ld", arg, 1);
+        print_raw_param("%ld", arg, last);
         return;
     }
     gemu_log("%s%s", signal_name, get_comma(last));
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 10 lines · Peter Maydell

Pass the 'last' parameter of print_signal() through to print_raw_param(); this fixes a problem where we weren't printing the comma separator for strace of rt_sigaction() when the signal was an unnamed (ie realtime) one:
6856 rt_sigaction(230xf6fff870,0xf6fff8fc) = 0

---
 linux-user/strace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan