mirror of
https://github.com/systemd/systemd.git
synced 2025-07-24 00:59:11 +03:00
man/examples: use strerror() instead of %m
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user