aboutsummaryrefslogtreecommitdiff
path: root/qemu-error.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-error.h')
-rw-r--r--qemu-error.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qemu-error.h b/qemu-error.h
new file mode 100644
index 0000000000..fa161135fd
--- /dev/null
+++ b/qemu-error.h
@@ -0,0 +1,12 @@
+#ifndef QEMU_ERROR_H
+#define QEMU_ERROR_H
+
+void qemu_error(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
+void qemu_error_internal(const char *file, int linenr, const char *func,
+ const char *fmt, ...)
+ __attribute__ ((format(printf, 4, 5)));
+
+#define qemu_error_new(fmt, ...) \
+ qemu_error_internal(__FILE__, __LINE__, __func__, fmt, ## __VA_ARGS__)
+
+#endif