[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/29] util/error: add G_GNUC_PRINTF for various functions
From: |
Paolo Bonzini |
Subject: |
[PULL 12/29] util/error: add G_GNUC_PRINTF for various functions |
Date: |
Tue, 10 Jan 2023 17:02:16 +0100 |
From: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221219130205.687815-5-berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
util/error-report.c | 1 +
util/error.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/util/error-report.c b/util/error-report.c
index 5edb2e604061..6e44a5573217 100644
--- a/util/error-report.c
+++ b/util/error-report.c
@@ -193,6 +193,7 @@ real_time_iso8601(void)
* a single phrase, with no newline or trailing punctuation.
* Prepend the current location and append a newline.
*/
+G_GNUC_PRINTF(2, 0)
static void vreport(report_type type, const char *fmt, va_list ap)
{
gchar *timestr;
diff --git a/util/error.c b/util/error.c
index b6c89d141208..1e7af665b838 100644
--- a/util/error.c
+++ b/util/error.c
@@ -45,6 +45,7 @@ static void error_handle_fatal(Error **errp, Error *err)
}
}
+G_GNUC_PRINTF(6, 0)
static void error_setv(Error **errp,
const char *src, int line, const char *func,
ErrorClass err_class, const char *fmt, va_list ap,
--
2.38.1
- [PULL 11/29] tools/virtiofsd: add G_GNUC_PRINTF for logging functions, (continued)
- [PULL 11/29] tools/virtiofsd: add G_GNUC_PRINTF for logging functions, Paolo Bonzini, 2023/01/10
- [PULL 17/29] libvhost-user: Replace typeof with __typeof__, Paolo Bonzini, 2023/01/10
- [PULL 24/29] libvduse: Fix assignment in vring_set_avail_event, Paolo Bonzini, 2023/01/10
- [PULL 22/29] libvduse: Provide _GNU_SOURCE when compiling outside of QEMU, Paolo Bonzini, 2023/01/10
- [PULL 21/29] libvhost-user: Change dev->postcopy_ufd assignment to make it C90 compliant, Paolo Bonzini, 2023/01/10
- [PULL 06/29] target/i386: Remove compilation errors when -Werror=maybe-uninitialized, Paolo Bonzini, 2023/01/10
- [PULL 09/29] disas: add G_GNUC_PRINTF to gstring_printf, Paolo Bonzini, 2023/01/10
- [PULL 12/29] util/error: add G_GNUC_PRINTF for various functions,
Paolo Bonzini <=
- [PULL 08/29] gitlab: remove redundant setting of PKG_CONFIG_PATH, Paolo Bonzini, 2023/01/10
- [PULL 13/29] tests: add G_GNUC_PRINTF for various functions, Paolo Bonzini, 2023/01/10
- [PULL 16/29] libvhost-user: Provide _GNU_SOURCE when compiling outside of QEMU, Paolo Bonzini, 2023/01/10
- [PULL 18/29] libvhost-user: Cast rc variable to avoid compiler warning, Paolo Bonzini, 2023/01/10
- [PULL 19/29] libvhost-user: Use unsigned int i for some for-loop iterations, Paolo Bonzini, 2023/01/10
- [PULL 28/29] target/i386: fix operand size of unary SSE operations, Paolo Bonzini, 2023/01/10
- [PULL 20/29] libvhost-user: Declare uffdio_register early to make it C90 compliant, Paolo Bonzini, 2023/01/10