summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2022-12-23 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2022-12-23 08:00:00 +0000
commit439a1f1e80df4a9af9bcb82b626686fc6497735c (patch)
tree2501d50333268c884d2609f7cba0cd0ba2b1543a
parent2f36e9f9e9fc6824fdba2bac693bad74d99418d5 (diff)
downloadstrace-439a1f1e80df4a9af9bcb82b626686fc6497735c.tar.gz
syscall: print injection note after the auxiliary string
* src/syscall.c (syscall_exiting_trace): In all cases where injection note is printed, make sure it is printed after the auxiliary string, not before it.
-rw-r--r--src/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall.c b/src/syscall.c
index af03a649a..5f9136c67 100644
--- a/src/syscall.c
+++ b/src/syscall.c
@@ -898,9 +898,9 @@ syscall_exiting_trace(struct tcb *tcp, struct timespec *ts, int res)
print_err_ret(tcp->u_rval, tcp->u_error);
break;
}
- print_injected_note(tcp);
if ((sys_res & RVAL_STR) && tcp->auxstr)
tprintf_string(" (%s)", tcp->auxstr);
+ print_injected_note(tcp);
} else {
if (sys_res & RVAL_NONE)
tprints_string("= ?");