os: direct access to logVerbosity

No need for complicated 'generic' setter, just make the variable
itself available to DDX'es.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-02-10 13:30:20 +01:00
committed by Enrico Weigelt, metux IT consult .
parent 4fa8b1658b
commit 3640a33077
11 changed files with 30 additions and 20 deletions

View File

@@ -30,6 +30,7 @@
#include <unistd.h>
#include "os/fmt.h"
#include "os/log_priv.h"
#include "assert.h"
#include "misc.h"
@@ -149,7 +150,7 @@ number_formatting(void)
-0x7FFFFFFFFFFFFFFF, /* Maximum 64-bit signed number */
} ;
LogSetParameter(XLOG_VERBOSITY, -1);
logVerbosity = -1;
for (i = 0; i < ARRAY_SIZE(unsigned_tests); i++)
assert(check_number_format_test(unsigned_tests[i]));
@@ -181,7 +182,7 @@ static void logging_format(void)
uintptr_t ptr;
char *fname = NULL;
LogSetParameter(XLOG_VERBOSITY, -1);
logVerbosity = -1;
/* set up buf to contain ".....end" */
memset(buf, '.', sizeof(buf));