valeriyvdovin / rpms / systemd

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