aboutsummaryrefslogtreecommitdiff
path: root/qemu-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-tool.c')
-rw-r--r--qemu-tool.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/qemu-tool.c b/qemu-tool.c
index a1af4acfef..b35ea8e1c2 100644
--- a/qemu-tool.c
+++ b/qemu-tool.c
@@ -101,3 +101,12 @@ int64_t qemu_get_clock(QEMUClock *clock)
qemu_gettimeofday(&tv);
return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
}
+
+void qemu_error(const char *fmt, ...)
+{
+ va_list args;
+
+ va_start(args, fmt);
+ vfprintf(stderr, fmt, args);
+ va_end(args);
+}