summaryrefslogtreecommitdiffstats
path: root/lib/log
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log')
-rw-r--r--lib/log/log.c5
-rw-r--r--lib/log/log.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/log/log.c b/lib/log/log.c
index a4f5c22..44543d0 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -41,6 +41,11 @@ void __pb_log_init(FILE *fp, bool _debug)
debug = _debug;
}
+void pb_log_set_debug(bool _debug)
+{
+ debug = _debug;
+}
+
FILE *pb_log_get_stream(void)
{
static FILE *null_stream;
diff --git a/lib/log/log.h b/lib/log/log.h
index e34de33..9454596 100644
--- a/lib/log/log.h
+++ b/lib/log/log.h
@@ -15,6 +15,7 @@ void __pb_log_init(FILE *stream, bool debug);
#define pb_log_init(s) __pb_log_init(s, false)
#endif
+void pb_log_set_debug(bool debug);
FILE *pb_log_get_stream(void);
#endif /* _LOG_H */
OpenPOWER on IntegriCloud