summaryrefslogtreecommitdiffstats
path: root/man/sd_bus_error-example.c
diff options
context:
space:
mode:
Diffstat (limited to 'man/sd_bus_error-example.c')
-rw-r--r--man/sd_bus_error-example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/sd_bus_error-example.c b/man/sd_bus_error-example.c
index 4b5217c..3836f5e 100644
--- a/man/sd_bus_error-example.c
+++ b/man/sd_bus_error-example.c
@@ -14,5 +14,5 @@ int writer_with_negative_errno_return(int fd, sd_bus_error *error) {
/* On error, initialize the error structure, and also propagate the errno
* value that write(2) set for us. */
- return sd_bus_error_set_errnof(error, errno, "Failed to write to fd %i: %m", fd);
+ return sd_bus_error_set_errnof(error, errno, "Failed to write to fd %i: %s", fd, strerror(errno));
}