aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/log.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/util/log.c b/util/log.c
index 090bc3bc39..2bd4dfba1b 100644
--- a/util/log.c
+++ b/util/log.c
@@ -59,26 +59,17 @@ void qemu_log_unlock(FILE *fd)
}
}
-/* Return the number of characters emitted. */
-int qemu_log(const char *fmt, ...)
+void qemu_log(const char *fmt, ...)
{
FILE *f = qemu_log_trylock();
- int ret = 0;
-
if (f) {
va_list ap;
va_start(ap, fmt);
- ret = vfprintf(f, fmt, ap);
+ vfprintf(f, fmt, ap);
va_end(ap);
qemu_log_unlock(f);
-
- /* Don't pass back error results. */
- if (ret < 0) {
- ret = 0;
- }
}
- return ret;
}
static void __attribute__((__constructor__)) qemu_logfile_init(void)