diff options
| author | Dimitris Aragiorgis <dimara@arrikto.com> | 2016-02-18 13:38:38 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-22 18:40:29 +0100 |
| commit | 96c33a4523ee1abe382ce4ff3e82b90ba78aa186 (patch) | |
| tree | 607b65f8018eb543241c4cffd2825bc395f3e463 /include/qemu/log.h | |
| parent | d42a0d1484f03d05184ed9bb867fee42476a588f (diff) | |
| download | focaccia-qemu-96c33a4523ee1abe382ce4ff3e82b90ba78aa186.tar.gz focaccia-qemu-96c33a4523ee1abe382ce4ff3e82b90ba78aa186.zip | |
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>
Diffstat (limited to 'include/qemu/log.h')
| -rw-r--r-- | include/qemu/log.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h index 30817f7b42..dda65fd3fa 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -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; |