aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-03-01 15:47:11 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-03-01 15:47:11 +0100
commit799c57b3e34bcac59760a64d01253ab362006f88 (patch)
tree6b4c9b92f5f74fbeb93f9e337d64ce85cde6a2d0
parent5e50f591ff3c0df55fc39192e82cced9c137f2ca (diff)
downloadfbida-799c57b3e34bcac59760a64d01253ab362006f88.tar.gz
fbcon: logind debug messages
-rw-r--r--kbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kbd.c b/kbd.c
index 9bb0fb5..9be8052 100644
--- a/kbd.c
+++ b/kbd.c
@@ -227,8 +227,12 @@ void logind_init(void)
if (r < 0) {
fprintf(stderr, "TakeControl failed: %s\n", error.message);
sd_bus_error_free(&error);
+ sd_bus_unref(dbus);
+ dbus = NULL;
return;
}
+
+ fprintf(stderr, "Opening input devices via logind.\n");
}
bool use_logind(void)
@@ -277,6 +281,7 @@ int logind_open(const char *path)
fd = dup(handle);
sd_bus_message_unref(m);
+ fprintf(stderr, "open %s: got fd %d via logind.\n", path, fd);
return fd;
}