summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorDimitris Aragiorgis <dimara@arrikto.com>2016-02-18 13:38:38 +0200
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:45:30 -0600
commitab92eece123840398bfbdcfef087d35d26d6bf54 (patch)
treeef426e028e90a4f157742e317e09a52e7ce30e0d /include/qemu
parenta33beaa4cdda454d6d95586b52f238eff1858cc7 (diff)
downloadhqemu-ab92eece123840398bfbdcfef087d35d26d6bf54.zip
hqemu-ab92eece123840398bfbdcfef087d35d26d6bf54.tar.gz
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')
-rw-r--r--include/qemu/log.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h
index 30817f7..dda65fd 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;
OpenPOWER on IntegriCloud