]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-device: add missing debugging log
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 4 Jan 2025 18:09:29 +0000 (03:09 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 7 Jan 2025 18:26:13 +0000 (18:26 +0000)
It was unexpectedly dropped by 660087dc9c4a5c610da99e7b6b1772e371eb0a80.

(cherry picked from commit 7e5238625ed4a879c2fe8ff7e457021d174bf083)

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

index 01fa90b1ff5cf23a82e94b3dd03d2d616b34736c..94dfd2ef138ec7acd48049ae499217accf59c5b6 100644 (file)
@@ -234,7 +234,7 @@ int device_set_syspath(sd_device *device, const char *_syspath, bool verify) {
 
                 r = path_simplify_alloc(_syspath, &syspath);
                 if (r < 0)
-                        return r;
+                        return log_oom_debug();
         }
 
         assert_se(devpath = startswith(syspath, "/sys"));