]> granicus.if.org Git - strace/commitdiff
utime.c: use umoven_or_printaddr
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 15 Jul 2015 08:27:18 +0000 (08:27 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Jul 2015 01:35:27 +0000 (01:35 +0000)
* utime.c (sys_utime): Use umoven_or_printaddr.

utime.c

diff --git a/utime.c b/utime.c
index af286a43f40f59e8f7ea796d3bd9c4e93c6eadd0..4626c9197719dda50b32e9d012dfee2c2894d806 100644 (file)
--- 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]));