diff --git a/libcpuid/libcpuid_util.c b/libcpuid/libcpuid_util.c index c0dd0a5..5d2d366 100644 --- a/libcpuid/libcpuid_util.c +++ b/libcpuid/libcpuid_util.c @@ -73,7 +73,7 @@ void debugf(int verboselevel, const char* format, ...) { char buff[1024]; va_list va; - if (verboselevel > _current_verboselevel) return; + if (!_warn_fun || (verboselevel > _current_verboselevel)) return; va_start(va, format); vsnprintf(buff, sizeof(buff), format, va); va_end(va);