Message ID | 1405436974-4161-9-git-send-email-steved@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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");
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 logging to stderr is enabled. Signed-off-by: Steve Dickson <steved@redhat.com> --- src/auth_gss.c | 3 +++ src/authgss_prot.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)