diff options
author | Scott Mayhew <smayhew@redhat.com> | 2015-11-02 08:11:31 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-11-02 08:55:04 -0500 |
commit | 1cc193508435b67c362c4e99d3f84d1bd0f342a4 (patch) | |
tree | a11a23f47a75ad2d9ba3ea065622a1c61428c113 /utils/gssd/svcgssd.c | |
parent | 273b46473594b8aa4e55f682577d1dd94d44ad50 (diff) | |
download | nfs-utils-1cc193508435b67c362c4e99d3f84d1bd0f342a4.tar.gz nfs-utils-1cc193508435b67c362c4e99d3f84d1bd0f342a4.tar.xz nfs-utils-1cc193508435b67c362c4e99d3f84d1bd0f342a4.zip |
Allow gssd and svcgssd to set the libtirpc debug level
The interface for controlling the debug level in libtirpc was added
over a year ago, but nothing's taking advantage of it.
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/svcgssd.c')
-rw-r--r-- | utils/gssd/svcgssd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c index f1b4347..0fe7c6d 100644 --- a/utils/gssd/svcgssd.c +++ b/utils/gssd/svcgssd.c @@ -135,6 +135,13 @@ main(int argc, char *argv[]) if (verbosity && rpc_verbosity == 0) rpc_verbosity = verbosity; authgss_set_debug_level(rpc_verbosity); +#elif HAVE_LIBTIRPC_SET_DEBUG + /* + * Only set the libtirpc debug level if explicitly requested via -r... + * svcgssd is chatty enough as it is. + */ + if (rpc_verbosity > 0) + libtirpc_set_debug(progname, rpc_verbosity, fg); #else if (rpc_verbosity > 0) printerr(0, "Warning: rpcsec_gss library does not " |