From: Steve Dickson <steved@redhat.com>
To: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: [PATCH] Improve debugging during lib initialization.
Date: Thu, 13 Jan 2011 14:20:02 -0500 [thread overview]
Message-ID: <1294946402-14041-1-git-send-email-steved@redhat.com> (raw)
Removed unnecessary new lines and dded debug code that
displays what Realms will be used.
Signed-off-by: Steve Dickson <steved@redhat.com>
---
libnfsidmap.c | 27 ++++++++++++++++++++++++---
1 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/libnfsidmap.c b/libnfsidmap.c
index 6415707..19d0d79 100644
--- a/libnfsidmap.c
+++ b/libnfsidmap.c
@@ -246,7 +246,7 @@ int nfs4_init_name_mapping(char *conffile)
default_domain = IDMAPD_DEFAULT_DOMAIN;
}
}
- IDMAP_LOG(1, ("libnfsidmap: using%s domain: %s\n",
+ IDMAP_LOG(1, ("libnfsidmap: using%s domain: %s",
(dflt ? " (default)" : ""), default_domain));
/* Get list of "local equivalent" realms. Meaning the list of realms
@@ -274,9 +274,30 @@ int nfs4_init_name_mapping(char *conffile)
local_realms->cnt++;
}
+ if (idmap_verbosity >= 1) {
+ struct conf_list_node *r;
+ char *buf = NULL;
+ int siz=0;
+
+ if (local_realms) {
+ TAILQ_FOREACH(r, &local_realms->fields, link) {
+ siz += (strlen(r->field)+4);
+ }
+ buf = malloc(siz);
+ if (buf) {
+ TAILQ_FOREACH(r, &local_realms->fields, link) {
+ sprintf(buf, "'%s' ", r->field);
+ }
+ IDMAP_LOG(1, ("libnfsidmap: Realms list: %s", buf));
+ free(buf);
+ }
+ } else
+ IDMAP_LOG(1, ("libnfsidmap: Realms list: <NULL> "));
+ }
+
nfs4_methods = conf_get_list("Translation", "Method");
if (nfs4_methods) {
- IDMAP_LOG(1, ("libnfsidmap: processing 'Method' list\n"));
+ IDMAP_LOG(1, ("libnfsidmap: processing 'Method' list"));
if (load_plugins(nfs4_methods, &nfs4_plugins) == -1)
return -ENOENT;
} else {
@@ -294,7 +315,7 @@ int nfs4_init_name_mapping(char *conffile)
gss_methods = conf_get_list("Translation", "GSS-Methods");
if (gss_methods) {
- IDMAP_LOG(1, ("libnfsidmap: processing 'GSS-Methods' list\n"));
+ IDMAP_LOG(1, ("libnfsidmap: processing 'GSS-Methods' list"));
if (load_plugins(gss_methods, &gss_plugins) == -1)
goto out;
}
--
1.7.3.3
reply other threads:[~2011-01-13 19:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1294946402-14041-1-git-send-email-steved@redhat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).