]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbindd: use better debug messages than 'talloc_strdup failed'
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Jan 2024 08:25:11 +0000 (09:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Apr 2024 13:28:42 +0000 (13:28 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Apr  5 13:28:42 UTC 2024 on atb-devel-224

source3/winbindd/winbindd_cm.c

index 1685edbabaa2aa29d66d0e846f6199370ec1e853..aebb4561ae8bd28954c3ac1f22993d02d5fcf0ee 100644 (file)
@@ -540,7 +540,8 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
                        tmp = talloc_strdup(
                                mem_ctx, domain_info->dc_unc);
                        if (tmp == NULL) {
-                               DEBUG(0, ("talloc_strdup failed\n"));
+                               DBG_ERR("talloc_strdup failed for dc_unc[%s]\n",
+                                       domain_info->dc_unc);
                                talloc_destroy(mem_ctx);
                                return false;
                        }
@@ -548,7 +549,9 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
                                domain->alt_name = talloc_strdup(domain,
                                                                 domain_info->domain_name);
                                if (domain->alt_name == NULL) {
-                                       DEBUG(0, ("talloc_strdup failed\n"));
+                                       DBG_ERR("talloc_strdup failed for "
+                                               "domain_info->domain_name[%s]\n",
+                                               domain_info->domain_name);
                                        talloc_destroy(mem_ctx);
                                        return false;
                                }
@@ -557,7 +560,9 @@ static bool get_dc_name_via_netlogon(struct winbindd_domain *domain,
                                domain->forest_name = talloc_strdup(domain,
                                                                    domain_info->forest_name);
                                if (domain->forest_name == NULL) {
-                                       DEBUG(0, ("talloc_strdup failed\n"));
+                                       DBG_ERR("talloc_strdup failed for "
+                                               "domain_info->forest_name[%s]\n",
+                                               domain_info->forest_name);
                                        talloc_destroy(mem_ctx);
                                        return false;
                                }