]> git.proxmox.com Git - qemu.git/commit
qemu-log: Remove qemu_log_try_set_file() and its users
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Feb 2013 16:13:27 +0000 (16:13 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 23 Feb 2013 09:42:14 +0000 (09:42 +0000)
commit632314c49ce20ee9c974f07544d9125fbbbfbe1b
treefd8e428c8e8f6c1742aa2f373187187bbff92295
parent685cbd2f63a48bd111bd2c3c4a2228029595ba12
qemu-log: Remove qemu_log_try_set_file() and its users

Remove the function qemu_log_try_set_file() and its users (which
are all in TCG code generation functions for various targets).
This function was added to abstract out code which was originally
written as "if (!logfile) logfile = stderr;" in order that BUG:
case code which did an unguarded "fprintf(logfile, ...)" would
not crash if debug logging was not enabled. Since those direct
uses of logfile have also been abstracted away into qemu_log()
calls which check for a NULL logfile, there is no need for the
target-* files to mess with the user's chosen logging settings.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Acked-by: Michael Walle <michael@walle.cc>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
include/qemu/log.h
target-cris/translate.c
target-lm32/translate.c
target-microblaze/translate.c
target-openrisc/translate.c