]> granicus.if.org Git - libtirpc/commitdiff
Set the initial value of libtirpc_debug_level to zero libtirpc-0-2-5-rc4
authorSteve Dickson <steved@redhat.com>
Fri, 8 Aug 2014 16:03:54 +0000 (12:03 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 8 Aug 2014 16:03:54 +0000 (12:03 -0400)
Signed-off-by: Steve Dickson <steved@redhat.com>
src/debug.c

index 3a9862e525775ebb74fbbcef33aa5c84625def41..b40ff375fae0ab21e608350367c6653bb4f81e1a 100644 (file)
@@ -28,7 +28,7 @@
 #include "debug.h"
 
 /* library global debug level */
-int libtirpc_debug_level = 3;
+int libtirpc_debug_level = 0;
 int  log_stderr = 1; /* log to stderr instead of systlog */
 
 /*
@@ -46,7 +46,8 @@ libtirpc_set_debug(char *name, int level, int use_stderr)
        if (!use_stderr)
                openlog(name, LOG_PID, LOG_DAEMON);
 
-       LIBTIRPC_DEBUG(1, ("libtirpc: debug level %d", level));
+       libtirpc_debug_level = level;
+       LIBTIRPC_DEBUG(1, ("libtirpc: debug level %d", libtirpc_debug_level));
 }
 
 void