From: Richard Sharpe Date: Wed, 12 May 2021 18:46:24 +0000 (-0700) Subject: s3: lib: If we're reporting getaddrinfo fail, print the name we were looking up in... X-Git-Tag: tevent-0.11.0~894 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=401ae83d5e67571a134a8a855597c04ba206d746;p=thirdparty%2Fsamba.git s3: lib: If we're reporting getaddrinfo fail, print the name we were looking up in the same debug. Signed-off-by: Richard Sharpe Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/util.c b/source3/lib/util.c index 1a0bc5003cd..7d9af875a74 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1549,8 +1549,9 @@ bool name_to_fqdn(fstring fqdn, const char *name) s = getaddrinfo(name, NULL, &hints, &result); if (s != 0) { - DEBUG(1, ("getaddrinfo: %s\n", gai_strerror(s))); - DEBUG(10,("name_to_fqdn: lookup for %s failed.\n", name)); + DBG_WARNING("getaddrinfo lookup for %s failed: %s\n", + name, + gai_strerror(s)); fstrcpy(fqdn, name); return false; }