mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt, metux IT consult .
parent
4fa8b1658b
commit
3640a33077
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user