mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-04 03:50:14 +01:00
Mark the log function as attribute printf
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
56ae994efa
commit
7222f839d0
1 changed files with 5 additions and 1 deletions
|
|
@ -31,6 +31,9 @@ extern "C" {
|
|||
#include <stdint.h>
|
||||
#include <libudev.h>
|
||||
|
||||
#define LIBINPUT_ATTRIBUTE_PRINTF(_format, _args) \
|
||||
__attribute__ ((format (printf, _format, _args)))
|
||||
|
||||
/**
|
||||
* @mainpage
|
||||
* libinput is a generic input device handling library. It abstracts
|
||||
|
|
@ -999,7 +1002,8 @@ libinput_log_get_priority(void);
|
|||
*/
|
||||
typedef void (*libinput_log_handler)(enum libinput_log_priority priority,
|
||||
void *user_data,
|
||||
const char *format, va_list args);
|
||||
const char *format, va_list args)
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0);
|
||||
|
||||
/**
|
||||
* @ingroup base
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue