[PATCH 08/15] print_rpc_gss_sec: Make sure logging to stderr is enabled.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/auth_gss.c     | 3 +++
 src/authgss_prot.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

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");
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux