chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: use log_*_errno whenever %m is in the format string
[elogind.git]
/
src
/
core
/
hostname-setup.c
diff --git
a/src/core/hostname-setup.c
b/src/core/hostname-setup.c
index f81103a8103eb48aa44c1f1c14c97937392d25df..72e4c539eff970cb23e0b740a436847aea1adae6 100644
(file)
--- a/
src/core/hostname-setup.c
+++ b/
src/core/hostname-setup.c
@@
-83,7
+83,7
@@
int hostname_setup(void) {
}
if (sethostname_idempotent(hn) < 0) {
- log_warning
(
"Failed to set hostname to <%s>: %m", hn);
+ log_warning
_errno(errno,
"Failed to set hostname to <%s>: %m", hn);
return -errno;
}