]> git.ipfire.org Git - thirdparty/qemu.git/commit - linux-user/syscall.c
linux-user: Use `qemu_log' for non-strace logging
authorJosh Kunz <jkz@google.com>
Tue, 4 Feb 2020 02:54:13 +0000 (18:54 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 19 Feb 2020 10:17:40 +0000 (11:17 +0100)
commit39be535008f120452d3bda2a50798774a5f1f963
tree68d2f8f211e24c608601f454e7d91ebfb864e3f6
parente10ee3f567c098929217458fb47a5a2d147331bd
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>
linux-user/arm/cpu_loop.c
linux-user/fd-trans.c
linux-user/syscall.c
linux-user/vm86.c