Skip to contentSkip to conversation

Added imlpementation for qemu_error for non-qemu executables

PATCH New Naphtali Sprei 1 participant 1 message Oct 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added imlpementation for qemu_error for non-qemu executables

Now qemu_error can be called also from shared files, e.g. block.c.

---
 qemu-tool.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
qemu-tool.c +9 -0
index ba24aa2..186c4f7 100644
@@ -88,3 +88,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);
+}
Signature · 1 line
1.6.3.3