diff options
author | Erwan Velu <erwanaliasr1@gmail.com> | 2015-08-19 07:07:25 +0200 |
---|---|---|
committer | Erwan Velu <erwanaliasr1@gmail.com> | 2015-09-04 17:57:52 +0200 |
commit | 74b6a2777e6351edc85aac21a69dd51be5e1e9aa (patch) | |
tree | 9239cce36bb16eb5a986ef278cf584d35743edb7 | |
parent | bd8ccabb61c76321ee8df5c0fe9754f5008de423 (diff) | |
download | syslinux-74b6a2777e6351edc85aac21a69dd51be5e1e9aa.tar.gz |
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.
-rw-r--r-- | core/thread/schedule.c | 4 | ||||
-rw-r--r-- | mk/devel.mk | 1 |
2 files changed, 5 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); /* diff --git a/mk/devel.mk b/mk/devel.mk index b1fca87e..89642e21 100644 --- a/mk/devel.mk +++ b/mk/devel.mk @@ -1,6 +1,7 @@ # Useful while doing development, but not for production. GCCWARN += -Wno-clobbered #GCCWARN += -DDEBUG_MALLOC +#GCCWARN += -DDEBUG_THREAD # GCCWARN += -DDEBUG_PORT=0x3f8 -DCORE_DEBUG=1 GCCWARN += -DDYNAMIC_DEBUG |