From cec41dd2b302b7c11dc412b19ee6419acb845073 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 15 Jul 2015 08:27:18 +0000 Subject: [PATCH] utime.c: use umoven_or_printaddr * utime.c (sys_utime): Use umoven_or_printaddr. --- utime.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/utime.c b/utime.c index af286a43..4626c919 100644 --- a/utime.c +++ b/utime.c @@ -14,12 +14,8 @@ SYS_FUNC(utime) tprints(", "); wordsize = current_wordsize; - if (!tcp->u_arg[1]) - tprints("NULL"); - else if (!verbose(tcp)) - tprintf("%#lx", tcp->u_arg[1]); - else if (umoven(tcp, tcp->u_arg[1], 2 * wordsize, &u) < 0) - tprints("[?, ?]"); + if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u)) + ; else if (wordsize == sizeof u.utl[0]) { tprintf("[%s,", sprinttime(u.utl[0])); tprintf(" %s]", sprinttime(u.utl[1])); -- 2.40.0