(!1688) os: log: drop obsolete LogSetParameter()
The variables that can be set via this function are all now being accessed directly. Not callers left, so drop it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
41f214b6fb
commit
11e5dfa409
18
os/log.c
18
os/log.c
|
@ -310,24 +310,6 @@ LogClose(enum ExitCode error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
LogSetParameter(LogParameter param, int value)
|
|
||||||
{
|
|
||||||
switch (param) {
|
|
||||||
case XLOG_SYNC:
|
|
||||||
xorgLogSync = value ? TRUE : FALSE;
|
|
||||||
return TRUE;
|
|
||||||
case XLOG_VERBOSITY:
|
|
||||||
xorgLogVerbosity = value;
|
|
||||||
return TRUE;
|
|
||||||
case XLOG_FILE_VERBOSITY:
|
|
||||||
xorgLogFileVerbosity = value;
|
|
||||||
return TRUE;
|
|
||||||
default:
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
LMOD_LONG = 0x1,
|
LMOD_LONG = 0x1,
|
||||||
LMOD_LONGLONG = 0x2,
|
LMOD_LONGLONG = 0x2,
|
||||||
|
|
|
@ -40,25 +40,6 @@ void LogSetDisplay(void);
|
||||||
*/
|
*/
|
||||||
void LogClose(enum ExitCode error);
|
void LogClose(enum ExitCode error);
|
||||||
|
|
||||||
/* @brief parameters for LogSetParameter() */
|
|
||||||
typedef enum {
|
|
||||||
XLOG_SYNC, /* enable/disable fsync() after each log file write */
|
|
||||||
XLOG_VERBOSITY, /* set console log verbosity */
|
|
||||||
XLOG_FILE_VERBOSITY, /* set log file verbosity */
|
|
||||||
} LogParameter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief set log file paremeters
|
|
||||||
*
|
|
||||||
* Set various (int) logging parameters, eg. verbosity.
|
|
||||||
* See XLOG_* defines
|
|
||||||
*
|
|
||||||
* @param ID of the parameter to set
|
|
||||||
* @param value the new value
|
|
||||||
* @result TRUE if successful
|
|
||||||
*/
|
|
||||||
int LogSetParameter(LogParameter param, int value);
|
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
/**
|
/**
|
||||||
* @brief log debug messages (like errors) if symbol DEBUG is defined
|
* @brief log debug messages (like errors) if symbol DEBUG is defined
|
||||||
|
|
Loading…
Reference in New Issue