loglevel bitmasks needs to be larger because we got more than 32 files
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
/* loglevels.h is autogenerated at make time */
|
||||
#include "loglevels.h"
|
||||
|
||||
static uint32_t loglevel = 0;
|
||||
static uint64_t loglevel = 0;
|
||||
static bool verbose = true;
|
||||
|
||||
/**
|
||||
@ -41,7 +41,7 @@ void set_verbosity(bool _verbose) {
|
||||
void add_loglevel(const char *level) {
|
||||
/* Handle the special loglevel "all" */
|
||||
if (strcasecmp(level, "all") == 0) {
|
||||
loglevel = UINT32_MAX;
|
||||
loglevel = UINT64_MAX;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ void errorlog(char *fmt, ...) {
|
||||
* This is to be called by DLOG() which includes filename/linenumber
|
||||
*
|
||||
*/
|
||||
void debuglog(int lev, char *fmt, ...) {
|
||||
void debuglog(uint64_t lev, char *fmt, ...) {
|
||||
va_list args;
|
||||
|
||||
if ((loglevel & lev) == 0)
|
||||
|
Reference in New Issue
Block a user