mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 07:40:26 +01:00
Mark some internal log functions as printf-style function
Fixes the respective clang warnings Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
9590fb953f
commit
ef2f95dfee
5 changed files with 7 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ struct libinput_event_tablet_pad {
|
|||
} strip;
|
||||
};
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0)
|
||||
static void
|
||||
libinput_default_log_func(struct libinput *libinput,
|
||||
enum libinput_log_priority priority,
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@ litest_backtrace(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(5, 6)
|
||||
void
|
||||
litest_fail_condition(const char *file,
|
||||
int line,
|
||||
|
|
@ -756,6 +757,7 @@ _litest_add_ranged_for_device(const char *name,
|
|||
litest_abort_msg("Invalid test device type");
|
||||
}
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0)
|
||||
static void
|
||||
litest_log_handler(struct libinput *libinput,
|
||||
enum libinput_log_priority pri,
|
||||
|
|
|
|||
|
|
@ -847,6 +847,7 @@ const struct libinput_interface leak_interface = {
|
|||
.close_restricted = close_restricted_leak,
|
||||
};
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0)
|
||||
static void
|
||||
simple_log_handler(struct libinput *libinput,
|
||||
enum libinput_log_priority priority,
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ struct window {
|
|||
struct libinput_device *devices[50];
|
||||
};
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(1, 2)
|
||||
static int
|
||||
error(const char *fmt, ...)
|
||||
{
|
||||
|
|
@ -121,6 +122,7 @@ error(const char *fmt, ...)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(1, 2)
|
||||
static void
|
||||
msg(const char *fmt, ...)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ enum options {
|
|||
OPT_PROFILE,
|
||||
};
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0)
|
||||
static void
|
||||
log_handler(struct libinput *li,
|
||||
enum libinput_log_priority priority,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue