Blame SOURCES/0110-CACHE_REQ_DOMAIN-debug-the-set-domain-resolution-ord.patch

ecf709
From 3671f188ff9e379022d62eaf7171f397f04ac153 Mon Sep 17 00:00:00 2001
ecf709
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
ecf709
Date: Tue, 25 Apr 2017 14:25:12 +0200
ecf709
Subject: [PATCH 110/110] CACHE_REQ_DOMAIN: debug the set domain resolution
ecf709
 order
ecf709
MIME-Version: 1.0
ecf709
Content-Type: text/plain; charset=UTF-8
ecf709
Content-Transfer-Encoding: 8bit
ecf709
ecf709
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
ecf709
ecf709
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
ecf709
(cherry picked from commit b78febe4c579f86f8007a27599605d1eb9f97a62)
ecf709
---
ecf709
 src/responder/common/cache_req/cache_req_domain.c | 11 +++++++++++
ecf709
 1 file changed, 11 insertions(+)
ecf709
ecf709
diff --git a/src/responder/common/cache_req/cache_req_domain.c b/src/responder/common/cache_req/cache_req_domain.c
ecf709
index 6d37db0f109d5343eb6d7f4272bea522d4c34cf7..2c238c9966d322bb542fa2047313ee9e5144edee 100644
ecf709
--- a/src/responder/common/cache_req/cache_req_domain.c
ecf709
+++ b/src/responder/common/cache_req/cache_req_domain.c
ecf709
@@ -191,6 +191,10 @@ cache_req_domain_new_list_from_domain_resolution_order(
ecf709
 
ecf709
     if (domain_resolution_order != NULL) {
ecf709
         if (strcmp(domain_resolution_order, ":") != 0) {
ecf709
+            DEBUG(SSSDBG_TRACE_FUNC,
ecf709
+                  "Domain resolution order list (split by ':'): \"%s\"\n",
ecf709
+                  domain_resolution_order);
ecf709
+
ecf709
             ret = split_on_separator(tmp_ctx, domain_resolution_order, ':',
ecf709
                                      true, true, &list, NULL);
ecf709
             if (ret != EOK) {
ecf709
@@ -199,7 +203,14 @@ cache_req_domain_new_list_from_domain_resolution_order(
ecf709
                         ret, sss_strerror(ret));
ecf709
                 goto done;
ecf709
             }
ecf709
+        } else {
ecf709
+            DEBUG(SSSDBG_TRACE_FUNC,
ecf709
+                  "Domain resolution order list: ':' "
ecf709
+                  "(do not use any specific order)\n");
ecf709
         }
ecf709
+    } else {
ecf709
+        DEBUG(SSSDBG_TRACE_FUNC,
ecf709
+              "Domain resolution order list: not set\n");
ecf709
     }
ecf709
 
ecf709
     cr_domains = cache_req_domain_new_list_from_string_list(mem_ctx, domains,
ecf709
-- 
ecf709
2.9.3
ecf709