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:
Peter Hutterer 2017-03-22 20:59:07 +10:00
parent 17e9dfd0d1
commit 25b14e1335
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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,