diff options
author | Denis V. Lunev | 2016-03-16 12:36:52 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2016-03-31 10:58:32 +0200 |
commit | 99affd1d5bd4e396ecda50e53dfbc5147fa1313d (patch) | |
tree | df7d34256317520edbc4f64d92a2ed13142cd5dd /include | |
parent | trace: do not always call exit() in trace_enable_events (diff) | |
download | qemu-99affd1d5bd4e396ecda50e53dfbc5147fa1313d.tar.gz qemu-99affd1d5bd4e396ecda50e53dfbc5147fa1313d.tar.xz qemu-99affd1d5bd4e396ecda50e53dfbc5147fa1313d.zip |
log: move qemu_log_close/qemu_log_flush from header to log.c
There is no particular reason to keep these functions in the header.
Suggested by Paolo.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1458128212-4197-3-git-send-email-den@openvz.org
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/log.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/include/qemu/log.h b/include/qemu/log.h index cf38adbdb0..c52f136ac1 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -95,23 +95,6 @@ qemu_log_vprintf(const char *fmt, va_list va) /* Maintenance: */ -/* fflush() the log file */ -static inline void qemu_log_flush(void) -{ - fflush(qemu_logfile); -} - -/* Close the log file */ -static inline void qemu_log_close(void) -{ - if (qemu_logfile) { - if (qemu_logfile != stderr) { - fclose(qemu_logfile); - } - qemu_logfile = NULL; - } -} - /* define log items */ typedef struct QEMULogItem { int mask; @@ -146,4 +129,9 @@ int qemu_str_to_log_mask(const char *str); */ void qemu_print_log_usage(FILE *f); +/* fflush() the log file */ +void qemu_log_flush(void); +/* Close the log file */ +void qemu_log_close(void); + #endif |