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

@@ -28,6 +28,7 @@
#include "dix/dix_priv.h"
#include "os/cmdline.h"
#include "os/ddx_priv.h"
#include "os/log_priv.h"
#include "os/osdep.h"
#include "ephyr.h"
@@ -288,10 +289,8 @@ ddxProcessArgument(int argc, char **argv, int i)
}
else if (!strcmp(argv[i], "-verbosity")) {
if (i + 1 < argc && argv[i + 1][0] != '-') {
int verbosity = atoi(argv[i + 1]);
LogSetParameter(XLOG_VERBOSITY, verbosity);
EPHYR_LOG("set verbosiry to %d\n", verbosity);
logVerbosity = atoi(argv[i + 1]);
EPHYR_LOG("set verbosiry to %d\n", logVerbosity);
return 2;
}
else {