From: Richard Henderson <[email protected]> Printing the same pid for all threads isn't helpful.
Signed-off-by: Richard Henderson <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]> --- linux-user/strace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 37bc96df9bb6..e02dbc3a7108 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -3928,7 +3928,7 @@ print_syscall(CPUArchState *cpu_env, int num, if (!f) { return; } - fprintf(f, "%d ", getpid()); + fprintf(f, "%d ", gettid()); for (i = 0; i < nsyscalls; i++) { if (scnames[i].nr == num) { -- 2.37.3
