dsdb: Print strerror in addition to errno
authorVolker Lendecke <vl@samba.org>
Thu, 14 Jun 2018 15:42:56 +0000 (17:42 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 10 Jan 2019 01:41:29 +0000 (02:41 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/dns/dns_update.c

index 20052f4..b2b951c 100644 (file)
@@ -327,8 +327,8 @@ static void dnsupdate_nameupdate_done(struct tevent_req *subreq)
        TALLOC_FREE(subreq);
 
        if (ret != 0) {
-               DEBUG(0,(__location__ ": Failed DNS update - with error code %d\n",
-                        sys_errno));
+               DBG_ERR("Failed DNS update - with error code %d: %s\n",
+                       sys_errno, strerror(sys_errno));
        } else {
                DEBUG(3,("Completed DNS update check OK\n"));
        }