projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed function
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index 7b9beacc51ff555ce81431a5da94817037b331bd..b71fee31934da47516917d3dbdb9e99aee3fdd49 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-288,7
+288,7
@@
static void printf_log_prefix(int log_level, char *mode)
printf_log_nonewline("[%s] ", log_token);
}
printf_log_nonewline("[%s] ", log_token);
}
-static void Log(int log_level, char *mode, char *format, va_list ap)
+static void
v
Log(int log_level, char *mode, char *format, va_list ap)
{
if (log_level < 0 || log_level > LOG_FATAL)
return;
{
if (log_level < 0 || log_level > LOG_FATAL)
return;
@@
-300,7
+300,7
@@
static void Log(int log_level, char *mode, char *format, va_list ap)
// if optional debug mode specified, limit debug output accordingly
if (options.debug_mode != NULL &&
// if optional debug mode specified, limit debug output accordingly
if (options.debug_mode != NULL &&
-
!strEqual(options.debug_mode, mode)
)
+
strstr(mode, options.debug_mode) == NULL
)
return;
}
return;
}
@@
-352,7
+352,7
@@
void Debug(char *mode, char *format, ...)
va_list ap;
va_start(ap, format);
va_list ap;
va_start(ap, format);
- Log(LOG_DEBUG, mode, format, ap);
+
v
Log(LOG_DEBUG, mode, format, ap);
va_end(ap);
}
va_end(ap);
}
@@
-361,7
+361,7
@@
void Info(char *format, ...)
va_list ap;
va_start(ap, format);
va_list ap;
va_start(ap, format);
- Log(LOG_INFO, NULL, format, ap);
+
v
Log(LOG_INFO, NULL, format, ap);
va_end(ap);
}
va_end(ap);
}
@@
-370,7
+370,7
@@
void Warn(char *format, ...)
va_list ap;
va_start(ap, format);
va_list ap;
va_start(ap, format);
- Log(LOG_WARN, NULL, format, ap);
+
v
Log(LOG_WARN, NULL, format, ap);
va_end(ap);
}
va_end(ap);
}