From 6db0562b8d3cda777650521f1205a541d0e0aa93 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 8 Oct 2007 21:25:52 -0500 Subject: Add gcc format attribute to _alpm_log, catch a few bugs in the process This fixed a few of our formatted output strings that were broken before but never being checked. Signed-off-by: Dan McGee --- lib/libalpm/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/log.h') diff --git a/lib/libalpm/log.h b/lib/libalpm/log.h index abb160d5..00fabf47 100644 --- a/lib/libalpm/log.h +++ b/lib/libalpm/log.h @@ -30,7 +30,7 @@ #define ALPM_LOG_FUNC #endif -void _alpm_log(pmloglevel_t flag, char *fmt, ...); +void _alpm_log(pmloglevel_t flag, char *fmt, ...) __attribute__((format(printf,2,3))); #endif /* _ALPM_LOG_H */ -- cgit v1.2.3-24-g4f1b