(!1688) os: directly set console verbosity level, instead of using LogSetParameter()

No need for extra call to some demuxer function for nothing but setting a
simple int variable. Setting verbosity level really is nothing more than just
writing some value into a variable, so it's trivial to just to do that, instead
of having an unncessarily complex "universal setter" for that.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-09-09 20:40:51 +02:00
parent 8c04c790e8
commit 43c528494f
7 changed files with 20 additions and 14 deletions

View File

@@ -150,7 +150,7 @@ number_formatting(void)
-0x7FFFFFFFFFFFFFFF, /* Maximum 64-bit signed number */
} ;
LogSetParameter(XLOG_VERBOSITY, -1);
xorgLogVerbosity = -1;
for (i = 0; i < ARRAY_SIZE(unsigned_tests); i++)
assert(check_number_format_test(unsigned_tests[i]));
@@ -182,7 +182,7 @@ static void logging_format(void)
uintptr_t ptr;
char *fname = NULL;
LogSetParameter(XLOG_VERBOSITY, -1);
xorgLogVerbosity = -1;
/* set up buf to contain ".....end" */
memset(buf, '.', sizeof(buf));