]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: update log message and use SYNTHETIC_ERRNO()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Dec 2023 05:41:42 +0000 (14:41 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 10 Dec 2023 12:51:17 +0000 (12:51 +0000)
Follow-up for ce5a6d5307568671cec7c253e984ffc0eafa726b.

Addresses https://github.com/systemd/systemd/pull/30049#discussion_r1395453408.

src/libsystemd/sd-bus/test-bus-chat.c

index da1340fe59308759ab01d010aef4191086ed2704..d06853b22c0254f18eaf892630aad53a94098ad4 100644 (file)
@@ -432,8 +432,7 @@ static void* client2(void *p) {
         if (r < 0)
                 log_debug("Failed to issue method call: %s", bus_error_message(&error, r));
         else {
-                log_error("Slow call unexpectedly succeed.");
-                r = -ENOANO;
+                r = log_error_errno(SYNTHETIC_ERRNO(ENOANO), "Slow call unexpectedly succeeded.");
                 goto finish;
         }