From 39be535008f120452d3bda2a50798774a5f1f963 Mon Sep 17 00:00:00 2001 From: Josh Kunz Date: Mon, 3 Feb 2020 18:54:13 -0800 Subject: linux-user: Use `qemu_log' for non-strace logging Since most calls to `gemu_log` are actually logging unimplemented features, this change replaces most non-strace calls to `gemu_log` with calls to `qemu_log_mask(LOG_UNIMP, ...)`. This allows the user to easily log to a file, and to mask out these log messages if they desire. Note: This change is slightly backwards incompatible, since now these "unimplemented" log messages will not be logged by default. Signed-off-by: Josh Kunz Reviewed-by: Laurent Vivier Message-Id: <20200204025416.111409-2-jkz@google.com> Signed-off-by: Laurent Vivier --- linux-user/arm/cpu_loop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linux-user/arm') diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c index 1fae90c..cf618da 100644 --- a/linux-user/arm/cpu_loop.c +++ b/linux-user/arm/cpu_loop.c @@ -349,8 +349,9 @@ void cpu_loop(CPUARMState *env) env->regs[0] = cpu_get_tls(env); break; default: - gemu_log("qemu: Unsupported ARM syscall: 0x%x\n", - n); + qemu_log_mask(LOG_UNIMP, + "qemu: Unsupported ARM syscall: 0x%x\n", + n); env->regs[0] = -TARGET_ENOSYS; break; } -- cgit v1.1