mirror of https://github.com/xemu-project/xemu.git
linux-user: Remove DEBUG
This is redundant with both -strace and actual tracing. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20180818190118.12911-2-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
13b7b18850
commit
8a85e5dd3b
|
@ -163,7 +163,6 @@
|
||||||
* (The one remaining unallocated bit is 0x1000 which used to be CLONE_PID.)
|
* (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
|
/* Define DEBUG_ERESTARTSYS to force every syscall to be restarted
|
||||||
* once. This exercises the codepaths for restart.
|
* once. This exercises the codepaths for restart.
|
||||||
*/
|
*/
|
||||||
|
@ -5884,9 +5883,6 @@ static abi_long do_ioctl(int fd, int cmd, abi_long arg)
|
||||||
ie++;
|
ie++;
|
||||||
}
|
}
|
||||||
arg_type = ie->arg_type;
|
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) {
|
if (ie->do_ioctl) {
|
||||||
return ie->do_ioctl(ie, buf_temp, fd, cmd, arg);
|
return ie->do_ioctl(ie, buf_temp, fd, cmd, arg);
|
||||||
} else if (!ie->host_cmd) {
|
} else if (!ie->host_cmd) {
|
||||||
|
@ -8132,9 +8128,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
gemu_log("syscall %d", num);
|
|
||||||
#endif
|
|
||||||
trace_guest_user_syscall(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
trace_guest_user_syscall(cpu, num, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
||||||
if(do_strace)
|
if(do_strace)
|
||||||
print_syscall(num, arg1, arg2, arg3, arg4, arg5, arg6);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
fail:
|
fail:
|
||||||
#ifdef DEBUG
|
|
||||||
gemu_log(" = " TARGET_ABI_FMT_ld "\n", ret);
|
|
||||||
#endif
|
|
||||||
if(do_strace)
|
if(do_strace)
|
||||||
print_syscall_ret(num, ret);
|
print_syscall_ret(num, ret);
|
||||||
trace_guest_user_syscall_ret(cpu, num, ret);
|
trace_guest_user_syscall_ret(cpu, num, ret);
|
||||||
|
|
Loading…
Reference in New Issue