From: Denys Vlasenko Date: Tue, 7 Apr 2015 10:46:59 +0000 (+0200) Subject: Fix confusing "resuming interrupted unknown" message X-Git-Tag: v4.11~525 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc59f14fb8eb951f41c8d823ba35c3b636092cd4;p=strace Fix confusing "resuming interrupted unknown" message Dmitry reported seeing the following: $ sleep 2 & sleep 1; ./strace -erestart_syscall -p $! [1] 12345 Process 12345 attached restart_syscall(<... resuming interrupted unknown ...>) = 0 Fixing it by replacing "unknown" with "system call". Signed-off-by: Denys Vlasenko --- diff --git a/syscall.c b/syscall.c index d54d8b66..1e19eb55 100644 --- a/syscall.c +++ b/syscall.c @@ -1264,7 +1264,7 @@ get_scno(struct tcb *tcp) .nargs = MAX_ARGS, .sys_flags = 0, .sys_func = printargs, - .sys_name = "unknown", /* not used */ + .sys_name = "system call", }; tcp->s_ent = &unknown; tcp->qual_flg = UNDEFINED_SCNO | QUAL_RAW | DEFAULT_QUAL_FLAGS;