diff --git a/src/helper/log.c b/src/helper/log.c index 1d459825f..caed8a9da 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -47,7 +47,7 @@ static const char * const log_strings[7] = { "Debug: ", /* corresponds to LOG_LVL_DEBUG_USB */ }; -static int count; +static unsigned int count; /* forward the log to the listeners */ static void log_forward(const char *file, unsigned int line, const char *function, const char *string) @@ -110,7 +110,7 @@ static void log_puts(enum log_levels level, #error "Configuration error: Neither mallinfo() nor mallinfo2() are available." #endif #endif - fprintf(log_output, "%s%d %" PRId64 " %s:%d %s()" + fprintf(log_output, "%s%u %" PRId64 " %s:%d %s()" #ifdef _DEBUG_FREE_SPACE_ #ifdef HAVE_MALLINFO2 " %zu"