Blame nfs-utils-1.1.2-gssd-getverbose.patch
|
|
85ed8ab |
commit 73f9b4402ec6625618967f947c99e6e417322d36
|
|
|
85ed8ab |
Author: Kevin Coffman <kwc@citi.umich.edu>
|
|
|
85ed8ab |
Date: Wed May 7 14:38:47 2008 -0400
|
|
|
85ed8ab |
|
|
|
85ed8ab |
Add a new function to retrieve the current verbosity level
|
|
|
85ed8ab |
so that some messages that would otherwise always print may
|
|
|
85ed8ab |
be silenced.
|
|
|
85ed8ab |
|
|
|
85ed8ab |
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
|
|
|
85ed8ab |
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
85ed8ab |
|
|
|
85ed8ab |
diff --git a/utils/gssd/err_util.c b/utils/gssd/err_util.c
|
|
|
85ed8ab |
index 5644db6..2583e06 100644
|
|
|
85ed8ab |
--- a/utils/gssd/err_util.c
|
|
|
85ed8ab |
+++ b/utils/gssd/err_util.c
|
|
|
85ed8ab |
@@ -60,3 +60,8 @@ void printerr(int priority, char *format, ...)
|
|
|
85ed8ab |
xlog_backend(L_ERROR, format, args);
|
|
|
85ed8ab |
va_end(args);
|
|
|
85ed8ab |
}
|
|
|
85ed8ab |
+
|
|
|
85ed8ab |
+int get_verbosity(void)
|
|
|
85ed8ab |
+{
|
|
|
85ed8ab |
+ return verbosity;
|
|
|
85ed8ab |
+}
|
|
|
85ed8ab |
diff --git a/utils/gssd/err_util.h b/utils/gssd/err_util.h
|
|
|
85ed8ab |
index 5e5af48..c4df32d 100644
|
|
|
85ed8ab |
--- a/utils/gssd/err_util.h
|
|
|
85ed8ab |
+++ b/utils/gssd/err_util.h
|
|
|
85ed8ab |
@@ -33,5 +33,6 @@
|
|
|
85ed8ab |
|
|
|
85ed8ab |
void initerr(char *progname, int verbosity, int fg);
|
|
|
85ed8ab |
void printerr(int priority, char *format, ...);
|
|
|
85ed8ab |
+int get_verbosity(void);
|
|
|
85ed8ab |
|
|
|
85ed8ab |
#endif /* _ERR_UTIL_H_ */
|