aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-07-30 10:40:47 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2008-08-04 09:25:14 +0930
commit906a5d6add75d3bf3077d0542352534256b734d4 (patch)
tree5ff028075591d91c6c3d3ccd3a96687fab2b5680
parentevdev 2.0.3 (diff)
downloadxf86-input-evdev-906a5d6add75d3bf3077d0542352534256b734d4.tar.gz
xf86-input-evdev-906a5d6add75d3bf3077d0542352534256b734d4.tar.bz2
xf86-input-evdev-906a5d6add75d3bf3077d0542352534256b734d4.zip
Print the device name when we get a read error
(cherry picked from commit 5c074af5a9abba138023e3bc6954d1062f7c36dd)
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 0cd016a..45b0e5d 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -162,7 +162,7 @@ EvdevReadInput(InputInfoPtr pInfo)
if (len != sizeof ev) {
/* The kernel promises that we always only read a complete
* event, so len != sizeof ev is an error. */
- xf86Msg(X_ERROR, "Read error: %s\n", strerror(errno));
+ xf86Msg(X_ERROR, "%s: Read error: %s\n", pInfo->name, strerror(errno));
break;
}