From 04628a1979f0ab8df4e78c0a57ca0d73381846be Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 26 Dec 2006 17:36:18 +0000 Subject: (svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to use in debug.h. grfmsg() is now used as a specific debug-function for grf. --- console.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'console.c') diff --git a/console.c b/console.c index b08fb7486..933547216 100644 --- a/console.c +++ b/console.c @@ -427,11 +427,13 @@ void CDECL IConsolePrintF(uint16 color_code, const char *s, ...) * which is achieved by using this function. Can only be used by * @debug() in debug.c. You need at least a level 2 (developer) for debugging * messages to show up + * @param dbg debugging category + * @param string debugging message */ -void IConsoleDebug(const char *string) +void IConsoleDebug(const char *dbg, const char *string) { if (_stdlib_developer > 1) - IConsolePrintF(_icolour_dbg, "dbg: %s", string); + IConsolePrintF(_icolour_dbg, "dbg: [%s] %s", dbg, string); } /** -- cgit v1.2.3-54-g00ecf