From: Dmitry V. Levin Date: Thu, 16 Jul 2015 23:11:23 +0000 (+0000) Subject: syslog.c: use umove_or_printaddr and RVAL_DECODED X-Git-Tag: v4.11~433 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5717e7af0dd1b8d80b4d624ce49b3799ec2ae760;p=strace syslog.c: use umove_or_printaddr and RVAL_DECODED * sysctl.c (sys_sysctl): Use umove_or_printaddr and RVAL_DECODED. --- diff --git a/sysctl.c b/sysctl.c index 03d7b1c8..1250ef4f 100644 --- a/sysctl.c +++ b/sysctl.c @@ -20,8 +20,8 @@ SYS_FUNC(sysctl) int *name; unsigned long size; - if (umove(tcp, tcp->u_arg[0], &info) < 0) - return printargs(tcp); + if (umove_or_printaddr(tcp, tcp->u_arg[0], &info)) + return RVAL_DECODED; size = sizeof(int) * (unsigned long) info.nlen; name = (size / sizeof(int) != (unsigned long) info.nlen) ? NULL : malloc(size); @@ -32,7 +32,7 @@ SYS_FUNC(sysctl) tprintf("{%p, %d, %p, %p, %p, %lu}", info.name, info.nlen, info.oldval, info.oldlenp, info.newval, (unsigned long)info.newlen); - return 0; + return RVAL_DECODED; } if (entering(tcp)) {