Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ErwanAliasr1 committed Sep 4, 2015
1 parent bd8ccab commit 74b6a27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/thread/schedule.c
Expand Up @@ -4,6 +4,10 @@
#include "core.h"
#include <dprintf.h>

#ifndef DEBUG_THREAD
#define dprintf
#endif

void (*sched_hook_func)(void);

/*
Expand Down
1 change: 1 addition & 0 deletions 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

Expand Down

0 comments on commit 74b6a27

Please sign in to comment.