summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/log.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-09 04:25:52 +0200
committerDan McGee <dan@archlinux.org>2007-10-09 04:25:52 +0200
commit6db0562b8d3cda777650521f1205a541d0e0aa93 (patch)
tree5a85048cde8e8b45b1e20fc947a70730b841c9f5 /lib/libalpm/log.h
parent087b8df781fb229033e9c01f58cdf80f0ddd29e6 (diff)
downloadpacman-6db0562b8d3cda777650521f1205a541d0e0aa93.tar.gz
pacman-6db0562b8d3cda777650521f1205a541d0e0aa93.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/log.h')
-rw-r--r--lib/libalpm/log.h2
1 files changed, 1 insertions, 1 deletions
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 */