diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-02-17 08:21:15 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2015-02-17 08:21:15 +0000 |
commit | 381c987d57e87d6a6e38108a51f51ed3e15777ce (patch) | |
tree | c25cb82a144b06708cec25b2fea7cefeb7674dca /driver/xf86-input-ws/src | |
parent | 79f88a50996b4dde9efdefb90150026370a4bd78 (diff) |
log read errors at verbose level 4 and above.
This prevents filling /var/log/Xorg.0.log when a device gets disconnected.
XXX more work is needed to actually disable it (and make it possible to
automatically re-enable it when it becomes available again).
Diffstat (limited to 'driver/xf86-input-ws/src')
-rw-r--r-- | driver/xf86-input-ws/src/ws.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/xf86-input-ws/src/ws.c b/driver/xf86-input-ws/src/ws.c index 9f3afffb6..70bd9c24a 100644 --- a/driver/xf86-input-ws/src/ws.c +++ b/driver/xf86-input-ws/src/ws.c @@ -13,7 +13,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: ws.c,v 1.60 2013/11/02 13:17:32 shadchin Exp $ */ +/* $OpenBSD: ws.c,v 1.61 2015/02/17 08:21:14 matthieu Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -466,7 +466,7 @@ wsReadEvent(InputInfoPtr pInfo, struct wscons_event *event) len = read(pInfo->fd, event, sizeof(struct wscons_event)); if (len <= 0) { if (errno != EAGAIN) - xf86IDrvMsg(pInfo, X_ERROR, "read error %s\n", + xf86IDrvMsgVerb(pInfo, X_ERROR, 4, "read error %s\n", strerror(errno)); rc = FALSE; } else if (len != sizeof(struct wscons_event)) { |