syslog.c: use printaddr
* syslog.c (sys_syslog): Use printaddr.
This commit is contained in:
parent
040de57477
commit
aa06f46d01
6
syslog.c
6
syslog.c
@ -35,15 +35,15 @@ SYS_FUNC(syslog)
|
||||
break;
|
||||
default:
|
||||
if (entering(tcp)) {
|
||||
tprintf("%#lx, %lu",
|
||||
tcp->u_arg[1], tcp->u_arg[2]);
|
||||
printaddr(tcp->u_arg[1]);
|
||||
tprintf(", %lu", tcp->u_arg[2]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* bufp */
|
||||
if (syserror(tcp))
|
||||
tprintf("%#lx", tcp->u_arg[1]);
|
||||
printaddr(tcp->u_arg[1]);
|
||||
else
|
||||
printstr(tcp, tcp->u_arg[1], tcp->u_rval);
|
||||
/* len */
|
||||
|
Loading…
Reference in New Issue
Block a user