aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2015-08-19 07:07:25 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2015-09-04 17:57:52 +0200
commit74b6a2777e6351edc85aac21a69dd51be5e1e9aa (patch)
tree9239cce36bb16eb5a986ef278cf584d35743edb7 /core
parentbd8ccabb61c76321ee8df5c0fe9754f5008de423 (diff)
downloadsyslinux-74b6a2777e6351edc85aac21a69dd51be5e1e9aa.tar.gz
syslinux-74b6a2777e6351edc85aac21a69dd51be5e1e9aa.tar.xz
syslinux-74b6a2777e6351edc85aac21a69dd51be5e1e9aa.zip
debug: Adding -DDEBUG_THREAD
When debugging some syslinux code with debugging enabled, the threading code is so verbose that it completly slow down syslinux but also is so verbose that any other trace is invisible in the flood. This commit aims at requesting people to explicitly enable the threading logs by using -DDEBUG_THREAD.
Diffstat (limited to 'core')
-rw-r--r--core/thread/schedule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/thread/schedule.c b/core/thread/schedule.c
index 5a426f11..31a2840d 100644
--- a/core/thread/schedule.c
+++ b/core/thread/schedule.c
@@ -4,6 +4,10 @@
#include "core.h"
#include <dprintf.h>
+#ifndef DEBUG_THREAD
+#define dprintf
+#endif
+
void (*sched_hook_func)(void);
/*