syslog.c: use printaddr

* syslog.c (sys_syslog): Use printaddr.
This commit is contained in:
Дмитрий Левин 2015-07-16 21:59:53 +00:00
parent 040de57477
commit aa06f46d01

View File

@ -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 */