include: add an X_DEBUG message type
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
parent
61cb98da1c
commit
14e3ea730e
|
@ -578,6 +578,7 @@ typedef enum {
|
|||
X_INFO, /* Informational message */
|
||||
X_NONE, /* No prefix */
|
||||
X_NOT_IMPLEMENTED, /* Not implemented */
|
||||
X_DEBUG, /* Debug message */
|
||||
X_UNKNOWN = -1 /* unknown -- this must always be last */
|
||||
} MessageType;
|
||||
|
||||
|
|
5
os/log.c
5
os/log.c
|
@ -164,6 +164,9 @@ asm(".desc ___crashreporter_info__, 0x10");
|
|||
#ifndef X_NOT_IMPLEMENTED_STRING
|
||||
#define X_NOT_IMPLEMENTED_STRING "(NI)"
|
||||
#endif
|
||||
#ifndef X_DEBUG_STRING
|
||||
#define X_DEBUG_STRING "(DB)"
|
||||
#endif
|
||||
#ifndef X_NONE_STRING
|
||||
#define X_NONE_STRING ""
|
||||
#endif
|
||||
|
@ -362,6 +365,8 @@ LogMessageTypeVerbString(MessageType type, int verb)
|
|||
return X_UNKNOWN_STRING;
|
||||
case X_NONE:
|
||||
return X_NONE_STRING;
|
||||
case X_DEBUG:
|
||||
return X_DEBUG_STRING;
|
||||
default:
|
||||
return X_UNKNOWN_STRING;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user