diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2022-11-03 04:52:42 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2022-11-03 04:52:42 +0000 |
commit | 8307da3de2bb705e2027bd3604f6a3e8ff03f3c5 (patch) | |
tree | e85610170fde694c1ca1550c819493835b292896 /sys/kern | |
parent | b8c8bbc4bd544872bac210add830cbffece06cad (diff) |
Make scdebug_ret() behave like ktrsysret(), showing the off_t value
for lseek() and a single register_t value for all others.
ok miod@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_xxx.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 154f0b97329..e56e1ed456a 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_xxx.c,v 1.39 2022/08/14 01:58:27 jsg Exp $ */ +/* $OpenBSD: kern_xxx.c,v 1.40 2022/11/03 04:52:41 guenther Exp $ */ /* $NetBSD: kern_xxx.c,v 1.32 1996/04/22 01:38:41 christos Exp $ */ /* @@ -143,9 +143,12 @@ scdebug_ret(struct proc *p, register_t code, int error, printf("proc %d (%s): num ", pr->ps_pid, pr->ps_comm); if (code < 0 || code >= SYS_MAXSYSCALL) printf("OUT OF RANGE (%ld)", code); + else if (code == SYS_lseek) + printf("%ld ret: err = %d, rv = 0x%llx", code, + error, *(off_t *)retval); else - printf("%ld ret: err = %d, rv = 0x%lx,0x%lx", code, - error, retval[0], retval[1]); + printf("%ld ret: err = %d, rv = 0x%lx", code, + error, *retval); printf("\n"); } #endif /* SYSCALL_DEBUG */ |