mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 16:58:04 +02:00
evdev: mark the new log functions as printf-style functions
And fix up the one buggy call we had Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
17e9dfd0d1
commit
25b14e1335
2 changed files with 4 additions and 2 deletions
|
|
@ -2395,8 +2395,7 @@ tp_init_pressure(struct tp_dispatch *tp,
|
|||
}
|
||||
|
||||
evdev_log_debug(device,
|
||||
"using pressure-based touch detection\n",
|
||||
device->devname);
|
||||
"using pressure-based touch detection\n");
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -649,6 +649,7 @@ evdev_libinput_context(const struct evdev_device *device)
|
|||
return device->base.seat->libinput;
|
||||
}
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 0)
|
||||
static inline void
|
||||
evdev_log_msg_va(struct evdev_device *device,
|
||||
enum libinput_log_priority priority,
|
||||
|
|
@ -673,6 +674,7 @@ evdev_log_msg_va(struct evdev_device *device,
|
|||
args);
|
||||
}
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(3, 4)
|
||||
static inline void
|
||||
evdev_log_msg(struct evdev_device *device,
|
||||
enum libinput_log_priority priority,
|
||||
|
|
@ -687,6 +689,7 @@ evdev_log_msg(struct evdev_device *device,
|
|||
|
||||
}
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(4, 5)
|
||||
static inline void
|
||||
evdev_log_msg_ratelimit(struct evdev_device *device,
|
||||
struct ratelimit *ratelimit,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue