[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/6] util/error: add G_GNUC_PRINTF for various functions
From: |
Daniel P . Berrangé |
Subject: |
[PATCH 4/6] util/error: add G_GNUC_PRINTF for various functions |
Date: |
Mon, 19 Dec 2022 08:02:03 -0500 |
Signed-off-by: Daniel P. Berrangé <berrange@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 5edb2e6040..6e44a55732 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 b6c89d1412..1e7af665b8 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
- [PATCH 0/6] enforce use of G_GNUC_PRINTF annotations, Daniel P . Berrangé, 2022/12/19
- [PATCH 1/6] disas: add G_GNUC_PRINTF to gstring_printf, Daniel P . Berrangé, 2022/12/19
- [PATCH 2/6] hw/xen: use G_GNUC_PRINTF/SCANF for various functions, Daniel P . Berrangé, 2022/12/19
- [PATCH 6/6] enforce use of G_GNUC_PRINTF attributes, Daniel P . Berrangé, 2022/12/19
- [PATCH 5/6] tests: add G_GNUC_PRINTF for various functions, Daniel P . Berrangé, 2022/12/19
- [PATCH 3/6] tools/virtiofsd: add G_GNUC_PRINTF for logging functions, Daniel P . Berrangé, 2022/12/19
- [PATCH 4/6] util/error: add G_GNUC_PRINTF for various functions,
Daniel P . Berrangé <=
- Re: [PATCH 0/6] enforce use of G_GNUC_PRINTF annotations, Paolo Bonzini, 2022/12/22