]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device-enumerator: drop noisy log messages
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Aug 2022 18:18:49 +0000 (03:18 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 12 Aug 2022 12:23:58 +0000 (21:23 +0900)
These are not for failed tasks, and provide almost no information.

src/libsystemd/sd-device/device-enumerator.c

index 01d45a941f98db97ff23185e6fba69a98ab8bf24..30f2520b7245eed5febba2f0d6bc809ae279553f 100644 (file)
@@ -742,8 +742,6 @@ static int enumerator_scan_dir(
         if (!dir)
                 return -errno;
 
-        log_debug("sd-device-enumerator: Scanning %s", path);
-
         FOREACH_DIRENT_ALL(de, dir, return -errno) {
                 int k;
 
@@ -949,8 +947,6 @@ static int enumerator_scan_devices_children(sd_device_enumerator *enumerator) {
 static int enumerator_scan_devices_all(sd_device_enumerator *enumerator) {
         int k, r = 0;
 
-        log_debug("sd-device-enumerator: Scan all dirs");
-
         k = enumerator_scan_dir(enumerator, "bus", "devices", NULL);
         if (k < 0)
                 r = log_debug_errno(k, "sd-device-enumerator: Failed to scan /sys/bus: %m");