head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.19; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.50; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @
Go to the source code of this file.
Enumerations | |
| enum | dmxLogLevel { dmxDebug, dmxInfo, dmxWarning, dmxError, dmxFatal } |
Functions | |
| dmxLogLevel | dmxSetLogLevel (dmxLogLevel newLevel) |
| dmxLogLevel | dmxGetLogLevel (void) |
| void | dmxLog (dmxLogLevel logLevel, const char *format,...) |
| void | dmxLogCont (dmxLogLevel logLevel, const char *format,...) |
| const char * | dmxEventName (int type) |
| void | dmxLogOutput (DMXScreenInfo *dmxScreen, const char *format,...) |
| void | dmxLogOutputCont (DMXScreenInfo *dmxScreen, const char *format,...) |
| void | dmxLogOutputWarning (DMXScreenInfo *dmxScreen, const char *format,...) |
| void | dmxLogInput (DMXInputInfo *dmxInput, const char *format,...) |
| void | dmxLogInputCont (DMXInputInfo *dmxInput, const char *format,...) |
| void | dmxLogArgs (dmxLogLevel logLevel, int argc, char **argv) |
| void | dmxLogVisual (DMXScreenInfo *dmxScreen, XVisualInfo *vi, int defaultVisual) |
| const char * | dmxXInputEventName (int type) |
|
|
Logging levels -- output is tunable with dmxSetLogLevel.
|
|
|
Translate an event type into a human-readable string. |
|
|
Returns the log level set by dmxLogLevel. |
|
||||||||||||||||
|
Log the specified message at the specified logLevel. format can be a printf-like format expression. |
|
||||||||||||||||
|
Print argc messages, each describing an element in argv. This is maingly for debugging purposes. |
|
||||||||||||||||
|
Continue a log message without printing the message prefix. |
|
||||||||||||||||
|
Log an informational message (at level dmxInfo) related to input. The message prefix will contain information from dmxInput. |
|
||||||||||||||||
|
Continue a message related to input without printing the message prefix. |
|
||||||||||||||||
|
Log an informational message (at level dmxInfo) related to ouput. The message prefix will contain backend information from dmxScreen. |
|
||||||||||||||||
|
Continue a message related to output without printing the message prefix. |
|
||||||||||||||||
|
Log a warning message (at level dmxWarning) related to output. The message prefix will contain backend information from dmxScreen. |
|
||||||||||||||||
|
Print messages at level dmxInfo describing the visuals in vi. |
|
|
Set the default level for logging to dmxLogLevel. Returns the previous log level. |
|
|
Translate a (normalized) XInput event type into a human-readable string. |
Go to the source code of this file.
Enumerations | |
| enum | dmxLogLevel { dmxDebug, dmxInfo, dmxWarning, dmxError, dmxFatal a24 49 |
Functions | |
| dmxLogLevel | dmxSetLogLevel (dmxLogLevel newLevel) |
| dmxLogLevel | dmxGetLogLevel (void) |
| void | dmxLog (dmxLogLevel logLevel, const char *format,...) |
| void | dmxLogCont (dmxLogLevel logLevel, const char *format,...) |
| const char * | dmxEventName (int type) |
| void | dmxLogOutput (DMXScreenInfo *dmxScreen, const char *format,...) |
| void | dmxLogOutputCont (DMXScreenInfo *dmxScreen, const char *format,...) |
| void | dmxLogOutputWarning (DMXScreenInfo *dmxScreen, const char *format,...) |
| void | dmxLogInput (DMXInputInfo *dmxInput, const char *format,...) |
| void | dmxLogInputCont (DMXInputInfo *dmxInput, const char *format,...) |
| void | dmxLogArgs (dmxLogLevel logLevel, int argc, char **argv) |
| void | dmxLogVisual (DMXScreenInfo *dmxScreen, XVisualInfo *vi, int defaultVisual) |
| const char * | dmxXInputEventName (int type) |
This header is included by all files that need to use the DMX logging facilities.
| enum dmxLogLevel |
Logging levels -- output is tunable with dmxSetLogLevel.
| const char* dmxEventName | ( | int | type | ) |
Translate an event type into a human-readable string.
d51 1 a51 1Referenced by dmxConsoleUpdateFineCursor(), dmxDump(), and dmxEnqueue().
d53 8 a60 6| dmxLogLevel dmxGetLogLevel | ( | void | ) | d106 1 d108 27 a134 3 |
| void dmxLog | ( | dmxLogLevel | logLevel, | a162 1d164 3 a166 2 | const char * | format, | a168 1d170 3 a172 2 | ... | d176 2 a177 2 | ) | d179 1 d181 19 a199 14 |
| void dmxLogArgs | ( | dmxLogLevel | logLevel, | a206 1d208 3 a210 2 | int | argc, | a212 1d214 3 a216 2 | char ** | argv | d220 2 a221 2 | ) | d223 1 d225 19 a243 12 |
| void dmxLogCont | ( | dmxLogLevel | logLevel, | a250 1d252 3 a254 2 | const char * | format, | a256 1d258 3 a260 2 | ... | d264 2 a265 2 | ) | d267 1 d269 19 a287 14 |
| void dmxLogInput | ( | DMXInputInfo * | dmxInput, | a294 1d296 3 a298 2 | const char * | format, | a300 1d302 3 a304 2 | ... | d308 2 a309 2 | ) | d311 1 d313 19 a331 14 |
| void dmxLogInputCont | ( | DMXInputInfo * | dmxInput, | a338 1d340 3 a342 2 | const char * | format, | a344 1d346 3 a348 2 | ... | d352 2 a353 2 | ) | d355 1 d357 19 a375 14 |
| void dmxLogOutput | ( | DMXScreenInfo * | dmxScreen, | a382 1d384 3 a386 2 | const char * | format, | a388 1d390 3 a392 2 | ... | d396 2 a397 2 | ) | d399 1 d401 19 a419 14 |
| void dmxLogOutputCont | ( | DMXScreenInfo * | dmxScreen, | a426 1d428 3 a430 2 | const char * | format, | a432 1d434 3 a436 2 | ... | d440 2 a441 2 | ) | d443 1 d445 19 a463 14 |
| void dmxLogOutputWarning | ( | DMXScreenInfo * | dmxScreen, | a470 1d472 3 a474 2 | const char * | format, | a476 1d478 3 a480 2 | ... | d484 2 a485 2 | ) | d487 1 d489 19 a507 14 |
| void dmxLogVisual | ( | DMXScreenInfo * | dmxScreen, | a514 1d516 3 a518 2 | XVisualInfo * | vi, | a520 1d522 3 a524 2 | int | defaultVisual | d528 2 a529 2 | ) | d531 1 d533 27 a559 3 |
| dmxLogLevel dmxSetLogLevel | ( | dmxLogLevel | newLevel | ) | a588 4 |
Set the default level for logging to dmxLogLevel. Returns the previous log level.
a589 16References dmxCurrentLogLevel, and dmxFatal.
| const char* dmxXInputEventName | ( | int | type | ) |