diff options
author | Josh Kunz | 2020-02-04 03:54:13 +0100 |
---|---|---|
committer | Laurent Vivier | 2020-02-19 11:17:40 +0100 |
commit | 39be535008f120452d3bda2a50798774a5f1f963 (patch) | |
tree | 68d2f8f211e24c608601f454e7d91ebfb864e3f6 /linux-user/arm/cpu_loop.c | |
parent | configure: Avoid compiling system tools on user build by default (diff) | |
download | qemu-39be535008f120452d3bda2a50798774a5f1f963.tar.gz qemu-39be535008f120452d3bda2a50798774a5f1f963.tar.xz qemu-39be535008f120452d3bda2a50798774a5f1f963.zip |
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 <jkz@google.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200204025416.111409-2-jkz@google.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/arm/cpu_loop.c')
-rw-r--r-- | linux-user/arm/cpu_loop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux-user/arm/cpu_loop.c b/linux-user/arm/cpu_loop.c index 1fae90c6df..cf618daa1c 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; } |