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:
parent
003c171f0b
commit
cc4e5d08d3
|
@ -878,7 +878,7 @@ void
|
|||
xf86SetLogVerbosity(int verb)
|
||||
{
|
||||
xf86LogVerbose = verb;
|
||||
LogSetParameter(XLOG_FILE_VERBOSITY, verb);
|
||||
logFileVerbosity = verb;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -645,7 +645,7 @@ OsVendorInit(void)
|
|||
|
||||
}
|
||||
logVerbosity = 2;
|
||||
LogSetParameter(XLOG_FILE_VERBOSITY, logVerbosity);
|
||||
logFileVerbosity = 2;
|
||||
|
||||
/* Log the version information */
|
||||
if (serverGeneration == 1)
|
||||
|
|
2
os/log.c
2
os/log.c
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue