[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/7] linux-user: Remove DEBUG
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PULL 1/7] linux-user: Remove DEBUG |
Date: |
Wed, 22 Aug 2018 03:14:11 +0200 |
From: Richard Henderson <address@hidden>
This is redundant with both -strace and actual tracing.
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
---
linux-user/syscall.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 202aa777ad..2e45f854f7 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -163,7 +163,6 @@
* (The one remaining unallocated bit is 0x1000 which used to be CLONE_PID.)
*/
-//#define DEBUG
/* Define DEBUG_ERESTARTSYS to force every syscall to be restarted
* once. This exercises the codepaths for restart.
*/
@@ -5884,9 +5883,6 @@ static abi_long do_ioctl(int fd, int cmd, abi_long arg)
ie++;
}
arg_type = ie->arg_type;
-#if defined(DEBUG)
- gemu_log("ioctl: cmd=0x%04lx (%s)\n", (long)cmd, ie->name);
-#endif
if (ie->do_ioctl) {
return ie->do_ioctl(ie, buf_temp, fd, cmd, arg);
} else if (!ie->host_cmd) {
@@ -8132,9 +8128,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
}
#endif
-#ifdef DEBUG
- gemu_log("syscall %d", num);
-#endif
trace_guest_user_syscall(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6,
arg7, arg8);
if(do_strace)
print_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
@@ -12949,9 +12942,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long
arg1,
break;
}
fail:
-#ifdef DEBUG
- gemu_log(" = " TARGET_ABI_FMT_ld "\n", ret);
-#endif
if(do_strace)
print_syscall_ret(num, ret);
trace_guest_user_syscall_ret(cpu, num, ret);
--
2.17.1
- [Qemu-devel] [PULL 6/7] linux-user: update netlink route types, (continued)
- [Qemu-devel] [PULL 6/7] linux-user: update netlink route types, Laurent Vivier, 2018/08/20
- [Qemu-devel] [PULL 3/7] sh4: fix use_icount with linux-user, Laurent Vivier, 2018/08/20
- [Qemu-devel] [PULL 4/7] linux-user: fix recvmsg()/recvfrom() with netlink and MSG_TRUNC, Laurent Vivier, 2018/08/20
- Re: [Qemu-devel] [PULL 0/7] Linux user for 3.1 patches, no-reply, 2018/08/20
- Re: [Qemu-devel] [PULL 0/7] Linux user for 3.1 patches, Peter Maydell, 2018/08/21
- [Qemu-devel] [PULL 0/7] Linux user for 3.1 patches, Laurent Vivier, 2018/08/21
- [Qemu-devel] [PULL 2/7] linux-user: Split out do_syscall1, Laurent Vivier, 2018/08/21
- [Qemu-devel] [PULL 5/7] linux-user: Propagate goto unimplemented_nowarn to return, Laurent Vivier, 2018/08/21
- [Qemu-devel] [PULL 6/7] linux-user: Propagate goto unimplemented to default, Laurent Vivier, 2018/08/21
- [Qemu-devel] [PULL 7/7] linux-user: Propagate goto fail to return, Laurent Vivier, 2018/08/21
- [Qemu-devel] [PULL 1/7] linux-user: Remove DEBUG,
Laurent Vivier <=
- [Qemu-devel] [PULL 4/7] linux-user: Propagate goto efault to return, Laurent Vivier, 2018/08/21
- [Qemu-devel] [PULL 3/7] linux-user: Relax single exit from "break", Laurent Vivier, 2018/08/21
- Re: [Qemu-devel] [PULL 0/7] Linux user for 3.1 patches, Peter Maydell, 2018/08/23