]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Add a new function to retrieve the current verbosity level
authorKevin Coffman <kwc@citi.umich.edu>
Wed, 7 May 2008 18:38:47 +0000 (14:38 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 7 May 2008 18:38:47 +0000 (14:38 -0400)
so that some messages that would otherwise always print may
be silenced.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/err_util.c
utils/gssd/err_util.h

index 5644db68b73961ff1f0da47a245a4fef44523a2f..2583e06621906e4652c9274f135a2e0e52c1b55d 100644 (file)
@@ -60,3 +60,8 @@ void printerr(int priority, char *format, ...)
                xlog_backend(L_ERROR, format, args);
        va_end(args);
 }
+
+int get_verbosity(void)
+{
+       return verbosity;
+}
index 5e5af48d494cf2d6b4fc82db02b0c192ff28dccd..c4df32dab60dacf7134b6b3aa4e7fe3d3154603f 100644 (file)
@@ -33,5 +33,6 @@
 
 void initerr(char *progname, int verbosity, int fg);
 void printerr(int priority, char *format, ...);
+int get_verbosity(void);
 
 #endif /* _ERR_UTIL_H_ */