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

This commit is contained in:
Yu Watanabe
2025-02-02 12:43:26 +09:00
parent 1a85468768
commit c791f61949
3 changed files with 5 additions and 4 deletions
+2
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 */
+2 -3
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 */
+1 -1
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;
}