aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaphtali Sprei <nsprei@redhat.com>2009-10-28 18:41:39 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-09 08:43:12 -0600
commiteeb4a3bae0800133ce712b2208a0ed7893578288 (patch)
tree7fe2d53b6e690e915963fc6e072953d98a013ab9
parentba42b6467b0e95f29187539237424cec13f0d5da (diff)
Added imlpementation for qemu_error for non-qemu executables
Now qemu_error can be called also from shared files, e.g. block.c. Signed-off-by: Naphtali Sprei <nsprei@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-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);
+}