Print the device name when we get a read error

This commit is contained in:
Julien Cristau
2008-07-30 10:40:47 +02:00
parent 72551662a0
commit 5c074af5a9

View File

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