From 8b101f3f8257f7f31eaf6760de29fed3a98ef62c Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Mon, 16 Jun 2025 13:09:26 +0100 Subject: [PATCH] ntpq should report which host lookup failed --- ntpq/ntpq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntpq/ntpq.c b/ntpq/ntpq.c index 56ff4e50e9..4b1b0eda8c 100644 --- a/ntpq/ntpq.c +++ b/ntpq/ntpq.c @@ -743,7 +743,7 @@ openhost( } #endif if (a_info != 0) { - fprintf(stderr, "%s\n", gai_strerror(a_info)); + fprintf(stderr, "%s (%s)\n", gai_strerror(a_info), hname); return 0; }