diff options
author | Peter Maydell | 2013-02-12 17:13:27 +0100 |
---|---|---|
committer | Blue Swirl | 2013-02-23 10:42:14 +0100 |
commit | 632314c49ce20ee9c974f07544d9125fbbbfbe1b (patch) | |
tree | fd8e428c8e8f6c1742aa2f373187187bbff92295 /target-cris | |
parent | xhci: fix bad print specifier (diff) | |
download | qemu-632314c49ce20ee9c974f07544d9125fbbbfbe1b.tar.gz qemu-632314c49ce20ee9c974f07544d9125fbbbfbe1b.tar.xz qemu-632314c49ce20ee9c974f07544d9125fbbbfbe1b.zip |
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>
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/translate.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index 04a5379775..2cf01a52e7 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3215,8 +3215,6 @@ gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb, int num_insns; int max_insns; - qemu_log_try_set_file(stderr); - if (env->pregs[PR_VR] == 32) { dc->decoder = crisv32_decoder; dc->clear_locked_irq = 0; |