]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libnet: Improve debug messages
authorAndreas Schneider <asn@samba.org>
Wed, 14 Aug 2019 08:15:19 +0000 (10:15 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 9 Oct 2019 07:06:35 +0000 (07:06 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/libnet/libnet_join.c

index 0e7775079bba5e9d14681f9ec75b3e2dc88ec5b3..6017cc7694d545656961095b6514acedb8d636e2 100644 (file)
@@ -356,7 +356,7 @@ static ADS_STATUS libnet_join_precreate_machine_acct(TALLOC_CTX *mem_ctx,
                                         r->out.dns_domain_name);
 
        if (ADS_ERR_OK(status)) {
-               DEBUG(1,("machine account creation created\n"));
+               DBG_WARNING("Machine account successfully created\n");
                return status;
        } else  if ((status.error_type == ENUM_ADS_ERROR_LDAP) &&
                    (status.err.rc == LDAP_ALREADY_EXISTS)) {
@@ -364,7 +364,7 @@ static ADS_STATUS libnet_join_precreate_machine_acct(TALLOC_CTX *mem_ctx,
        }
 
        if (!ADS_ERR_OK(status)) {
-               DEBUG(1,("machine account creation failed\n"));
+               DBG_WARNING("Failed to create machine account\n");
                return status;
        }