mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
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>
This commit is contained in:
parent
685cbd2f63
commit
632314c49c
5 changed files with 0 additions and 16 deletions
|
@ -126,14 +126,6 @@ static inline void qemu_log_set_file(FILE *f)
|
|||
qemu_logfile = f;
|
||||
}
|
||||
|
||||
/* Set up a new log file, only if none is set */
|
||||
static inline void qemu_log_try_set_file(FILE *f)
|
||||
{
|
||||
if (!qemu_logfile) {
|
||||
qemu_logfile = f;
|
||||
}
|
||||
}
|
||||
|
||||
/* define log items */
|
||||
typedef struct QEMULogItem {
|
||||
int mask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue