mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Filipe Laíns
parent
47cc5fce92
commit
72d11de597
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user