]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-builtin: normalize load/unload log messages by builtins
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 2 Feb 2025 03:38:00 +0000 (12:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 2 Feb 2025 03:43:26 +0000 (12:43 +0900)
src/udev/udev-builtin-hwdb.c
src/udev/udev-builtin-kmod.c
src/udev/udev-builtin-net_setup_link.c

index b499d924793dfcaf9d83f82768cf9a3e726e4db6..f01d6154bc737eccd450a012f8946bbc78f7fd20 100644 (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 */
index 96819df9895caa2603f166fab29537bd17c7ac64..e0553ce3e4b801ddfb24d547b1bdee7d751d7ea4 100644 (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 */
index 572e171e07a84a85d26c806bd833ab876c2bf02f..0062a85db58a5f157d773779d142cb3b143b6e1b 100644 (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;
 }