From 72d11de59702bf0bf9a534449e4dbc4f244a20a7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 11 Dec 2019 08:37:55 +1000 Subject: [PATCH] ratbagd: print two verbose messages at startup When no device is present, starting ratbagd even with --verbose prints exactly nothing. Let's be more verbose here to give the user an indication that something's happening. The user wants everything, is probably willing to accept anything but in the end all we can say is that we have nothing. Related to #862 Signed-off-by: Peter Hutterer --- ratbagd/ratbagd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ratbagd/ratbagd.c b/ratbagd/ratbagd.c index 53534c2f..8168e268 100644 --- a/ratbagd/ratbagd.c +++ b/ratbagd/ratbagd.c @@ -356,6 +356,7 @@ static int ratbagd_new(struct ratbagd **out) if (r < 0) return r; + log_verbose("Initializing libratbag\n"); ctx->lib_ctx = ratbag_create_context(&ratbagd_lib_interface, ctx); if (!ctx->lib_ctx) return -ENOMEM; @@ -520,6 +521,8 @@ static int ratbagd_run(struct ratbagd *ctx) ctx); sd_event_add_post(ctx->event, NULL, before_idle_cb, ctx); + log_verbose("DBus server ready\n"); + return sd_event_loop(ctx->event); }