From: Yu Watanabe Date: Mon, 4 Apr 2022 09:42:29 +0000 (+0900) Subject: test-sd-device: log earlier which device is handled X-Git-Tag: v251-rc2~197^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04d1fbd564c2c55bac254e69856cad4275602913;p=thirdparty%2Fsystemd.git test-sd-device: log earlier which device is handled To make debugging the test easier. --- diff --git a/src/libsystemd/sd-device/test-sd-device.c b/src/libsystemd/sd-device/test-sd-device.c index 8d7cb792d68..f47df797432 100644 --- a/src/libsystemd/sd-device/test-sd-device.c +++ b/src/libsystemd/sd-device/test-sd-device.c @@ -25,6 +25,9 @@ static void test_sd_device_one(sd_device *d) { assert_se(sd_device_get_syspath(d, &syspath) >= 0); assert_se(path_startswith(syspath, "/sys")); + + log_info("%s(%s)", __func__, syspath); + assert_se(sd_device_new_from_syspath(&dev, syspath) >= 0); assert_se(sd_device_get_syspath(dev, &val) >= 0); assert_se(streq(syspath, val)); @@ -145,8 +148,6 @@ static void test_sd_device_one(sd_device *d) { assert_se(sd_device_new_from_device_id(&dev, id) >= 0); assert_se(sd_device_get_syspath(dev, &val) >= 0); assert_se(streq(syspath, val)); - - log_info("syspath:%s subsystem:%s id:%s initialized:%s", syspath, strna(subsystem), id, yes_no(i)); } TEST(sd_device_enumerator_devices) {