Skip to content

Commit abe2084

Browse files
pm215stefanhaRH
authored andcommitted
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 Signed-off-by: Peter Maydell <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
1 parent 2bd01ac commit abe2084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: linux-user/strace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ print_signal(abi_ulong arg, int last)
143143
case TARGET_SIGTTOU: signal_name = "SIGTTOU"; break;
144144
}
145145
if (signal_name == NULL) {
146-
print_raw_param("%ld", arg, 1);
146+
print_raw_param("%ld", arg, last);
147147
return;
148148
}
149149
gemu_log("%s%s", signal_name, get_comma(last));

0 commit comments

Comments
 (0)