From 06edb533f8f3d36a59baf87a31ff65afdd0f4222 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 1 Jun 2020 21:15:49 +0200 Subject: Fix typo and add rational for why the -a option (truncate arguments/outputs) is useful MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sctrace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sctrace.c b/sctrace.c index 50f417b..2f3b5a8 100644 --- a/sctrace.c +++ b/sctrace.c @@ -21,7 +21,7 @@ handle_syscall(struct process *proc) switch ((int)proc->state) { default: - /* Get systemcall arguments */ + /* Get system call arguments */ if (ptrace(PTRACE_GETREGS, proc->pid, NULL, ®s)) eprintf("ptrace PTRACE_GETREGS %ju NULL :", (uintmax_t)proc->pid); proc->scall = regs.orig_rax; @@ -183,7 +183,8 @@ main(int argc, char **argv) sigset_t sm; /* TODO add option to trace signals with siginfo (-s) */ - /* TODO add option to truncate long syscall arguments and outputs (-a) */ + /* TODO add option to truncate long syscall arguments and outputs (-a) + * This should be useful if your program does a lot of I/O */ ARGBEGIN { case '0': with_argv0 = 1; -- cgit v1.2.3-70-g09d2