summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-bus
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-10 21:19:43 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-11 16:58:21 +0200
commitf69ae8585f5ce6cd8d1e6f3ccd6c9c2cf153e846 (patch)
tree44c2365d8498d234b4f9dd686135438548f1345b /src/libsystemd/sd-bus
parenttree-wide: use STRERROR() (diff)
downloadsystemd-f69ae8585f5ce6cd8d1e6f3ccd6c9c2cf153e846.tar.xz
systemd-f69ae8585f5ce6cd8d1e6f3ccd6c9c2cf153e846.zip
tree-wide: define and use STRERROR_OR_EOF()
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r--src/libsystemd/sd-bus/test-bus-chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/test-bus-chat.c b/src/libsystemd/sd-bus/test-bus-chat.c
index df6dd62151..93e8ebfb1b 100644
--- a/src/libsystemd/sd-bus/test-bus-chat.c
+++ b/src/libsystemd/sd-bus/test-bus-chat.c
@@ -308,7 +308,7 @@ static void* client1(void *p) {
errno = 0;
if (read(pp[0], &x, 1) <= 0) {
- log_error("Failed to read from pipe: %s", errno != 0 ? strerror_safe(errno) : "early read");
+ log_error("Failed to read from pipe: %s", STRERROR_OR_EOF(errno));
goto finish;
}