]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/automount.c
shared: add process-util.[ch]
[thirdparty/systemd.git] / src / core / automount.c
index 33a16e1810fc564e1b05c03abd62bd4cb105c3a2..ce484ff1cd16a08408d49b9cf16ada8055583ef4 100644 (file)
@@ -40,6 +40,8 @@
 #include "dbus-automount.h"
 #include "bus-util.h"
 #include "bus-error.h"
+#include "formats-util.h"
+#include "process-util.h"
 
 static const UnitActiveState state_translation_table[_AUTOMOUNT_STATE_MAX] = {
         [AUTOMOUNT_DEAD] = UNIT_INACTIVE,
@@ -729,7 +731,8 @@ static int automount_dispatch_io(sd_event_source *s, int fd, uint32_t events, vo
         assert(fd == a->pipe_fd);
 
         if (events != EPOLLIN) {
-                log_unit_error(UNIT(a)->id, "Got invalid poll event on pipe.");
+                log_unit_error(UNIT(a)->id, "%s: got invalid poll event %"PRIu32" on pipe (fd=%d)",
+                               UNIT(a)->id, events, fd);
                 goto fail;
         }