From: Steve Dickson Date: Mon, 14 Jul 2014 13:21:11 +0000 (-0400) Subject: print_rpc_gss_sec: Make sure logging to stderr is enabled. X-Git-Tag: libtirpc-0-2-5-rc4~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbb2817e5360013938d774728e1b274084f78b22;p=libtirpc print_rpc_gss_sec: Make sure logging to stderr is enabled. It does not make sense to try an covert this routine to used the new debugging macro. So just insure the correct debugging level and printing to stderr is enabled. Signed-off-by: Steve Dickson --- diff --git a/src/auth_gss.c b/src/auth_gss.c index e636e7e..d8d5a72 100644 --- a/src/auth_gss.c +++ b/src/auth_gss.c @@ -88,6 +88,9 @@ print_rpc_gss_sec(struct rpc_gss_sec *ptr) int i; char *p; + if (libtirpc_debug_level < 4 || log_stderr == 0) + return; + gss_log_debug("rpc_gss_sec:"); if(ptr->mech == NULL) gss_log_debug("NULL gss_OID mech"); diff --git a/src/authgss_prot.c b/src/authgss_prot.c index 6dc4af6..669eab7 100644 --- a/src/authgss_prot.c +++ b/src/authgss_prot.c @@ -338,7 +338,7 @@ gss_log_hexdump(const u_char *buf, int len, int offset) u_int i, j, jm; int c; - if (libtirpc_debug_level < 3 || log_stderr == 0) + if (libtirpc_debug_level < 4 || log_stderr == 0) return; fprintf(stderr, "\n");