mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
log: Redirect stderr to logfile if deamonized
In case of daemonize, use the logfile passed with the -D option in order to redirect stderr to it instead of /dev/null. Also remove some unused code in log.h. Signed-off-by: Dimitris Aragiorgis <dimara@arrikto.com> Message-Id: <1455795518-19205-1-git-send-email-dimara@arrikto.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d42a0d1484
commit
96c33a4523
3 changed files with 14 additions and 9 deletions
|
@ -94,12 +94,6 @@ static inline void qemu_log_close(void)
|
|||
}
|
||||
}
|
||||
|
||||
/* Set up a new log file */
|
||||
static inline void qemu_log_set_file(FILE *f)
|
||||
{
|
||||
qemu_logfile = f;
|
||||
}
|
||||
|
||||
/* define log items */
|
||||
typedef struct QEMULogItem {
|
||||
int mask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue