libei: print the device IDs as hex in the added/resumed/suspended debug logs

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-10-23 14:25:53 +10:00
parent 54c06f8d1e
commit 0429ca2491

View file

@ -542,7 +542,7 @@ handle_msg_device_added(struct ei *ei, uint32_t deviceid,
ei_device_added(device);
log_debug(ei,
"Added device %d '%s' caps: %s%s%s%s seat: %s\n",
"Added device %#x '%s' caps: %s%s%s%s seat: %s\n",
deviceid, name,
ei_device_has_capability(device, EI_DEVICE_CAP_POINTER) ? "p" : "",
ei_device_has_capability(device, EI_DEVICE_CAP_POINTER_ABSOLUTE) ? "a" : "",
@ -557,7 +557,7 @@ handle_msg_device_added(struct ei *ei, uint32_t deviceid,
static int
handle_msg_device_removed(struct ei *ei, uint32_t deviceid)
{
log_debug(ei, "Removed device %d\n", deviceid);
log_debug(ei, "Removed device %#x\n", deviceid);
struct ei_device *device = ei_find_device(ei, deviceid);
if (device) {
@ -570,7 +570,7 @@ handle_msg_device_removed(struct ei *ei, uint32_t deviceid)
static int
handle_msg_resumed(struct ei *ei, uint32_t deviceid)
{
log_debug(ei, "Resumed device %d\n", deviceid);
log_debug(ei, "Resumed device %#x\n", deviceid);
struct ei_device *device = ei_find_device(ei, deviceid);
if (device) {