]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Set the verbosity level in both the librpcsecgss and
authorSteve Dickson <steved@redhat.com>
Mon, 22 Jun 2009 13:17:27 +0000 (09:17 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 22 Jun 2009 13:17:27 +0000 (09:17 -0400)
libnfsidmapd libraries when verbosity level is set
by the '-v' flag it on either daemon.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/gssd.c
utils/gssd/svcgssd.c

index f6949db72e10333571b78309684e0b8a8ef3c649..40a2b4d7e14d1e2e2256d9ea5950fcde1087fbe7 100644 (file)
@@ -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)
index 6ca0e8d762bf2ae36c321b97bb54f7efbfafd6cf..69d2a6966946b287fed1bcdfef0849cb5a844dfb 100644 (file)
@@ -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)