chiark / gitweb /
treewide: use log_*_errno whenever %m is in the format string
[elogind.git] / src / resolve-host / resolve-host.c
index 457b3e2d31c75ed694134817f8ebf7532f114c19..a3c7f96c9ea03d4dc2e68f7c27f58c1faebd10b5 100644 (file)
@@ -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;