chiark / gitweb /
Add __attribute__((const, pure, format)) in various places
[elogind.git] / src / core / selinux-access.c
index bc195f3c56e746746bd03d3a5cb2edc0baeb9f34..426aed07d263171def62b05ae811ecc3b08be4de 100644 (file)
@@ -174,7 +174,7 @@ static int audit_callback(
    user_avc's into the /var/log/audit/audit.log, otherwise they will be
    sent to syslog.
 */
-static int log_callback(int type, const char *fmt, ...) {
+_printf_attr_(2, 3) static int log_callback(int type, const char *fmt, ...) {
         va_list ap;
 
         va_start(ap, fmt);