projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e606dd
)
enabled init time debugging messages when compiled with debug code
author
Holger Schemel
<info@artsoft.org>
Sat, 19 Sep 2020 00:07:36 +0000
(
02:07
+0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 19 Sep 2020 00:07:36 +0000
(
02:07
+0200)
src/libgame/misc.c
patch
|
blob
|
history
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index e499e77a98e5105159412b67e20ca165c03ae8e5..7863159bf22ca434afb0952cc7b4bb0e9962b2e2 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-3785,7
+3785,7
@@
void NotifyUserAboutErrorFile(void)
#if DEBUG
#if DEBUG
-#define DEBUG_PRINT_INIT_TIMESTAMPS
FALS
E
+#define DEBUG_PRINT_INIT_TIMESTAMPS
TRU
E
#define DEBUG_PRINT_INIT_TIMESTAMPS_DEPTH 10
#define DEBUG_NUM_TIMESTAMPS 10
#define DEBUG_PRINT_INIT_TIMESTAMPS_DEPTH 10
#define DEBUG_NUM_TIMESTAMPS 10
@@
-3853,7
+3853,7
@@
void debug_print_timestamp(int counter_nr, char *message)
counter[counter_nr][1] = counter[counter_nr][0];
if (message)
counter[counter_nr][1] = counter[counter_nr][0];
if (message)
- Debug("time", "%s%s%s %.3f %s",
+ Debug("time
:init
", "%s%s%s %.3f %s",
debug_print_timestamp_get_padding(counter_nr * indent_size),
message,
debug_print_timestamp_get_padding(padding_size - strlen(message)),
debug_print_timestamp_get_padding(counter_nr * indent_size),
message,
debug_print_timestamp_get_padding(padding_size - strlen(message)),