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

Amitay Isaacs amitay at ozlabs.org
Tue Jul 2 13:48:14 AEST 2019


Reviewed-by: Amitay Isaacs <amitay at ozlabs.org>

On Mon, 2019-07-01 at 17:51 +1000, Alistair Popple wrote:
> 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
> 

Amitay.
-- 

Don't judge those who try and fail. Judge only those who fail to try.



More information about the Pdbg mailing list