os: direct access to logFileVerbosity

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 14:20:04 +01:00
parent 003c171f0b
commit cc4e5d08d3
4 changed files with 11 additions and 3 deletions

View File

@ -878,7 +878,7 @@ void
xf86SetLogVerbosity(int verb)
{
xf86LogVerbose = verb;
LogSetParameter(XLOG_FILE_VERBOSITY, verb);
logFileVerbosity = verb;
}
static void

View File

@ -645,7 +645,7 @@ OsVendorInit(void)
}
logVerbosity = 2;
LogSetParameter(XLOG_FILE_VERBOSITY, logVerbosity);
logFileVerbosity = 2;
/* Log the version information */
if (serverGeneration == 1)

View File

@ -111,9 +111,9 @@ OR PERFORMANCE OF THIS SOFTWARE.
Bool logSync = FALSE;
int logVerbosity = DEFAULT_LOG_VERBOSITY;
int logFileVerbosity = DEFAULT_LOG_FILE_VERBOSITY;
static int logFileFd = -1;
static int logFileVerbosity = DEFAULT_LOG_FILE_VERBOSITY;
/* Buffer to information logged before the log file is opened. */
static char *saveBuffer = NULL;

View File

@ -23,4 +23,12 @@ extern Bool logSync;
*/
extern int logVerbosity;
/**
* @brief log file verbosity
*
* The verbosity level of logging to per-display file. All messages with
* verbosity level below this one will be written to the log file.
*/
extern int logFileVerbosity;
#endif /* _XSERVER_LOG_PRIV_H */