ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
803fb7
From 64b6bcb807fdafc3609ab0019b3d8e9186fed632 Mon Sep 17 00:00:00 2001
803fb7
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
803fb7
Date: Thu, 2 Apr 2015 22:58:39 -0400
803fb7
Subject: [PATCH] core/automount: beef up error message
803fb7
803fb7
This should not happen... but when it does more information is nice.
803fb7
803fb7
(cherry picked from commit 50b03c8ea1248f2d35a9042a3fa959adc0ceb819)
803fb7
803fb7
Cherry-picked from: 5670709
803fb7
Resolves: #1222517
803fb7
---
803fb7
 src/core/automount.c | 3 ++-
803fb7
 1 file changed, 2 insertions(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/core/automount.c b/src/core/automount.c
803fb7
index e4c79415d..b391f6198 100644
803fb7
--- a/src/core/automount.c
803fb7
+++ b/src/core/automount.c
803fb7
@@ -734,7 +734,8 @@ static int automount_dispatch_io(sd_event_source *s, int fd, uint32_t events, vo
803fb7
         assert(fd == a->pipe_fd);
803fb7
 
803fb7
         if (events != EPOLLIN) {
803fb7
-                log_unit_error(UNIT(a)->id, "Got invalid poll event on pipe.");
803fb7
+                log_unit_error(UNIT(a)->id, "%s: got invalid poll event %"PRIu32" on pipe (fd=%d)",
803fb7
+                               UNIT(a)->id, events, fd);
803fb7
                 goto fail;
803fb7
         }
803fb7