]> git.proxmox.com Git - mirror_qemu.git/commit
target/sh4: Honor QEMU_LOG_FILENAME with QEMU_LOG=cpu
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 16 Mar 2023 00:34:11 +0000 (01:34 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 16 Mar 2023 09:31:25 +0000 (10:31 +0100)
commitad4052f104ab2a6e78f13e1d3053508e00599de3
treea6405516170fb33d91e7888fd6aa73f599086534
parentafa55c6e247463254d7181153f93a4a1efdf34e7
target/sh4: Honor QEMU_LOG_FILENAME with QEMU_LOG=cpu

When using QEMU_LOG=cpu on sh4, QEMU_LOG_FILENAME is partially ignored.
Fix by using qemu_fprintf() instead of qemu_printf() in the respective
places.

Fixes: 90c84c560067 ("qom/cpu: Simplify how CPUClass:cpu_dump_state() prints")
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230316003411.129462-1-iii@linux.ibm.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/sh4/translate.c