[Pdbg] [PATCH] libpdbg: Change default log level to print warnings

Alistair Popple alistair at popple.id.au
Mon Jul 1 17:51:25 AEST 2019


The log level currently defaults to only printing errors, however
library users likely still want to know about warnings unless an
application has explicitly silenced them by changing the default log
level or setting a logging function.

Signed-off-by: Alistair Popple <alistair at popple.id.au>
---
 libpdbg/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libpdbg/debug.c b/libpdbg/debug.c
index 64f41f6..679b035 100644
--- a/libpdbg/debug.c
+++ b/libpdbg/debug.c
@@ -19,7 +19,7 @@
 
 #include "debug.h"
 
-static int pdbg_loglevel = PDBG_ERROR;
+static int pdbg_loglevel = PDBG_WARNING;
 
 static void pdbg_logfunc_default(int loglevel, const char *fmt, va_list ap)
 {
-- 
2.11.0



More information about the Pdbg mailing list