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
/
resolve-host
/
resolve-host.c
diff --git
a/src/resolve-host/resolve-host.c
b/src/resolve-host/resolve-host.c
index 457b3e2d31c75ed694134817f8ebf7532f114c19..a3c7f96c9ea03d4dc2e68f7c27f58c1faebd10b5 100644
(file)
--- a/
src/resolve-host/resolve-host.c
+++ b/
src/resolve-host/resolve-host.c
@@
-514,7
+514,7
@@
static int parse_argv(int argc, char *argv[]) {
case 'i':
arg_ifindex = if_nametoindex(optarg);
if (arg_ifindex <= 0) {
- log_error
(
"Unknown interfaces %s: %m", optarg);
+ log_error
_errno(errno,
"Unknown interfaces %s: %m", optarg);
return -errno;
}
break;