summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-07-30 10:40:47 +0200
committerJulien Cristau <jcristau@debian.org>2008-07-30 10:42:05 +0200
commit5c074af5a9abba138023e3bc6954d1062f7c36dd (patch)
treed53c6cacd34c7d5a027eb89f8f3af52ac872ae42 /src
parent72551662a09eedf696508aaacf6aa02c0254e4de (diff)
Print the device name when we get a read error
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 58aa3dc..dc8f78d 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -202,7 +202,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;
}