]> granicus.if.org Git - strace/commitdiff
Cleanup process_vm_writev syscall decoding
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 31 Mar 2015 21:00:39 +0000 (21:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 31 Mar 2015 21:00:39 +0000 (21:00 +0000)
* process_vm.c (sys_process_vm_writev): Do not check for syserror,
it is not applicable on entering syscall.

process_vm.c

index 9bd85a87bff3ec0e9d5fb22b44014c5c21e0d498..02058a5db6254011a2aca92d5013a6e5ea42d6c3 100644 (file)
@@ -35,17 +35,11 @@ sys_process_vm_writev(struct tcb *tcp)
                /* arg 1: pid */
                tprintf("%ld, ", tcp->u_arg[0]);
                /* arg 2: local iov */
-               if (syserror(tcp))
-                       tprintf("%#lx", tcp->u_arg[1]);
-               else
-                       tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
+               tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], 1);
                /* arg 3: local iovcnt */
                tprintf(", %lu, ", tcp->u_arg[2]);
                /* arg 4: remote iov */
-               if (syserror(tcp))
-                       tprintf("%#lx", tcp->u_arg[3]);
-               else
-                       tprint_iov(tcp, tcp->u_arg[4], tcp->u_arg[3], 0);
+               tprint_iov(tcp, tcp->u_arg[4], tcp->u_arg[3], 0);
                /* arg 5: remote iovcnt */
                /* arg 6: flags */
                tprintf(", %lu, %lu", tcp->u_arg[4], tcp->u_arg[5]);