1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

udev-builtin: normalize load/unload log messages by builtins

This commit is contained in:
Yu Watanabe 2025-02-02 12:38:00 +09:00
parent 1a85468768
commit c791f61949
3 changed files with 5 additions and 4 deletions

View File

@ -199,12 +199,14 @@ static int builtin_hwdb_init(void) {
if (r < 0)
return r;
log_debug("Loaded hardware database.");
return 0;
}
/* called on udev shutdown and reload request */
static void builtin_hwdb_exit(void) {
hwdb = sd_hwdb_unref(hwdb);
log_debug("Unloaded hardware database.");
}
/* called every couple of seconds during event activity; 'true' if config has changed */

View File

@ -57,12 +57,11 @@ static int builtin_kmod_init(void) {
if (ctx)
return 0;
log_debug("Loading kernel module index.");
r = module_setup_context(&ctx);
if (r < 0)
return log_error_errno(r, "Failed to initialize libkmod context: %m");
log_debug("Loaded kernel module index.");
return 0;
}
@ -71,8 +70,8 @@ static void builtin_kmod_exit(void) {
if (!ctx)
return;
log_debug("Unload kernel module index.");
ctx = sym_kmod_unref(ctx);
log_debug("Unloaded kernel module index.");
}
/* called every couple of seconds during event activity; 'true' if config has changed */

View File

@ -82,7 +82,7 @@ static int builtin_net_setup_link_init(void) {
if (r < 0)
return r;
log_debug("Created link configuration context.");
log_debug("Loaded link configuration context.");
return 0;
}