Fix last commits by adding LOG_WARNING

Patch by Christian Ohm:
028 - Add LOG_WARNING


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@882 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2006-12-02 11:19:48 +00:00
parent 22ac91e2fe
commit 746a25ba13
2 changed files with 20 additions and 2 deletions

View File

@ -28,8 +28,22 @@ static BOOL enabled_debug_parts[LOG_LAST];
/* This list _must_ match the enum in debug.h! */
static const char *code_part_names[] = {
"all", "main", "sound", "video", "wz", "3d", "texture",
"net", "memory", "error", "never", "script", "movement", "attack", "last"
"all",
"main",
"sound",
"video",
"wz",
"3d",
"texture",
"net",
"memory",
"warning",
"error",
"never",
"script",
"movement",
"attack",
"last"
};
/**********************************************************************
@ -191,6 +205,9 @@ void debug_init(void)
}
memset( enabled_debug_parts, FALSE, sizeof(enabled_debug_parts) );
enabled_debug_parts[LOG_ERROR] = TRUE;
#ifdef DEBUG
enabled_debug_parts[LOG_WARNING] = TRUE;
#endif
}

View File

@ -80,6 +80,7 @@ typedef enum {
LOG_TEXTURE,
LOG_NET,
LOG_MEMORY,
LOG_WARNING, /* special; on in debug mode */
LOG_ERROR, /* special; on by default */
LOG_NEVER, /* if too verbose for anything but dedicated debugging... */
LOG_SCRIPT,