mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-05 13:38:02 +02:00
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:
parent
54c06f8d1e
commit
0429ca2491
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue