vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit 1c5e7e4c2a61dc3c289d807c7506d4cbef12244f
parent f178487c58a44df7b8c28a163796709f63190b82
Author: rminnich@xcpu2 <none@none>
Date:   Sun, 21 Mar 2010 18:57:22 -0700

fix an error in sleep handling.

Diffstat:
src/9vx/trap.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/9vx/trap.c b/src/9vx/trap.c @@ -241,6 +241,7 @@ syscallprint(Ureg *ureg) char *str = uvalidaddr(argv[i], 1, 0); j += snprint(up->syscalltrace+j,4096-j, "[%d]=%s ", i, str); } + snprint(up->syscalltrace+j,4096-j, ")"); break; } case EXITS:{ @@ -301,10 +302,9 @@ syscallprint(Ureg *ureg) sysctab[ureg->ax], sp[0], sp[1], sp[2], sp[3]); break; case SLEEP: { - uint32 *arg = uvalidaddr(sp[1], 1, 0); up->syscalltrace = smprint("%d [%s] %s %#ux %d", up->pid, up->text, - sysctab[ureg->ax], sp[0], arg[0]); + sysctab[ureg->ax], sp[0], sp[1]); break; } case _STAT:{