From: Steve Dickson Date: Mon, 22 Jun 2009 13:17:27 +0000 (-0400) Subject: Set the verbosity level in both the librpcsecgss and X-Git-Tag: nfs-utils-1-2-1-rc1~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=f91afa8eaee1d7ba390918d00d4f7d3f338d18d3;p=nfs-utils.git Set the verbosity level in both the librpcsecgss and libnfsidmapd libraries when verbosity level is set by the '-v' flag it on either daemon. Signed-off-by: Steve Dickson --- diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c index f6949db..40a2b4d 100644 --- a/utils/gssd/gssd.c +++ b/utils/gssd/gssd.c @@ -171,6 +171,8 @@ main(int argc, char *argv[]) initerr(progname, verbosity, fg); #ifdef HAVE_AUTHGSS_SET_DEBUG_LEVEL + if (verbosity && rpc_verbosity == 0) + rpc_verbosity = verbosity; authgss_set_debug_level(rpc_verbosity); #else if (rpc_verbosity > 0) diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c index 6ca0e8d..69d2a69 100644 --- a/utils/gssd/svcgssd.c +++ b/utils/gssd/svcgssd.c @@ -208,6 +208,8 @@ main(int argc, char *argv[]) initerr(progname, verbosity, fg); #ifdef HAVE_AUTHGSS_SET_DEBUG_LEVEL + if (verbosity && rpc_verbosity == 0) + rpc_verbosity = verbosity; authgss_set_debug_level(rpc_verbosity); #else if (rpc_verbosity > 0) @@ -215,6 +217,8 @@ main(int argc, char *argv[]) "support setting debug level\n"); #endif #ifdef HAVE_NFS4_SET_DEBUG + if (verbosity && idmap_verbosity == 0) + idmap_verbosity = verbosity; nfs4_set_debug(idmap_verbosity, NULL); #else if (idmap_verbosity > 0)