OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba42b64
)
Added imlpementation for qemu_error for non-qemu executables
author
Naphtali Sprei
<nsprei@redhat.com>
Wed, 28 Oct 2009 16:41:39 +0000
(18:41 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 9 Nov 2009 14:43:12 +0000
(08:43 -0600)
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>
qemu-tool.c
patch
|
blob
|
history
diff --git
a/qemu-tool.c
b/qemu-tool.c
index
a1af4ac
..
b35ea8e
100644
(file)
--- 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);
+}