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