36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
|
commit 73f9b4402ec6625618967f947c99e6e417322d36
|
||
|
Author: Kevin Coffman <kwc@citi.umich.edu>
|
||
|
Date: Wed May 7 14:38:47 2008 -0400
|
||
|
|
||
|
Add a new function to retrieve the current verbosity level
|
||
|
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>
|
||
|
|
||
|
diff --git a/utils/gssd/err_util.c b/utils/gssd/err_util.c
|
||
|
index 5644db6..2583e06 100644
|
||
|
--- a/utils/gssd/err_util.c
|
||
|
+++ b/utils/gssd/err_util.c
|
||
|
@@ -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;
|
||
|
+}
|
||
|
diff --git a/utils/gssd/err_util.h b/utils/gssd/err_util.h
|
||
|
index 5e5af48..c4df32d 100644
|
||
|
--- a/utils/gssd/err_util.h
|
||
|
+++ b/utils/gssd/err_util.h
|
||
|
@@ -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_ */
|