chiark / gitweb /
socket: log more information about invalid poll events
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Apr 2011 23:48:45 +0000 (01:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Apr 2011 23:48:45 +0000 (01:48 +0200)
src/socket.c

index 94991a3..1f03c22 100644 (file)
@@ -1612,7 +1612,7 @@ static void socket_fd_event(Unit *u, int fd, uint32_t events, Watch *w) {
         log_debug("Incoming traffic on %s", u->meta.id);
 
         if (events != EPOLLIN) {
-                log_error("Got invalid poll event on socket.");
+                log_error("%s: Got invalid poll event (0x%x) on socket.", u->meta.id, events);
                 goto fail;
         }