1
0
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:
Yu Watanabe
2024-04-03 03:40:05 +09:00
parent 06d0dcc009
commit e84f70e16d
11 changed files with 197 additions and 115 deletions

View File

@ -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));
}