diff options
author | Alistair Francis <alistair.francis@xilinx.com> | 2017-07-12 06:57:36 -0700 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-07-13 13:49:54 +0200 |
commit | 97f40301f1dc3a3658427d1e9d964007b6f5673b (patch) | |
tree | aebf4c402ea3ef99310bd3028e486b6d1c32f31a /include/qemu | |
parent | beeb175c0db29a4be13625c3e53cf674c3be9267 (diff) | |
download | qemu-97f40301f1dc3a3658427d1e9d964007b6f5673b.zip qemu-97f40301f1dc3a3658427d1e9d964007b6f5673b.tar.gz qemu-97f40301f1dc3a3658427d1e9d964007b6f5673b.tar.bz2 |
error: Functions to report warnings and informational messages
Add warn_report(), warn_vreport() for reporting warnings, and
info_report(), info_vreport() for informational messages.
These are implemented them with a helper function factored out of
error_vreport(), suitably generalized. This patch makes no changes
to the output of the original error_report() function.
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <c89e9980019f296ec9aa38d7689ac4d5c369296d.1499866456.git.alistair.francis@xilinx.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/error-report.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qemu/error-report.h b/include/qemu/error-report.h index 3001865..e1c8ae1 100644 --- a/include/qemu/error-report.h +++ b/include/qemu/error-report.h @@ -35,8 +35,15 @@ void error_printf(const char *fmt, ...) GCC_FMT_ATTR(1, 2); void error_vprintf_unless_qmp(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0); void error_printf_unless_qmp(const char *fmt, ...) GCC_FMT_ATTR(1, 2); void error_set_progname(const char *argv0); + void error_vreport(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0); +void warn_vreport(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0); +void info_vreport(const char *fmt, va_list ap) GCC_FMT_ATTR(1, 0); + void error_report(const char *fmt, ...) GCC_FMT_ATTR(1, 2); +void warn_report(const char *fmt, ...) GCC_FMT_ATTR(1, 2); +void info_report(const char *fmt, ...) GCC_FMT_ATTR(1, 2); + const char *error_get_progname(void); extern bool enable_timestamp_msg; |