aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-25 23:22:40 +0200
committerMattias Andrée <maandree@kth.se>2023-06-25 23:22:40 +0200
commitfd6bd9d9090213d4644fc0a96f06fb34ce5365fc (patch)
treee2d5facad8bb34b84596ee07999fe588dd0c42fc /print.c
parentAdd more test cases (diff)
downloadsctrace-fd6bd9d9090213d4644fc0a96f06fb34ce5365fc.tar.gz
sctrace-fd6bd9d9090213d4644fc0a96f06fb34ce5365fc.tar.bz2
sctrace-fd6bd9d9090213d4644fc0a96f06fb34ce5365fc.tar.xz
Some code improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'print.c')
-rw-r--r--print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print.c b/print.c
index 77f8f48..01d19c8 100644
--- a/print.c
+++ b/print.c
@@ -864,7 +864,7 @@ print_nonconst_sockaddr(struct process *proc, size_t arg_index)
socklen_t saved_len;
void *mem;
const char *err;
- if (proc->state == Syscall) {
+ if (proc->state == KernelSpace) {
/* on return */
saved_len = (socklen_t)proc->save[arg_index + 1];
len = len < saved_len ? len : saved_len;