Skip to content

Commit

Permalink
makefile: fix debug flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fcangialosi committed May 20, 2018
1 parent a9166ee commit be97793
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Comment/uncomment the following line to disable/enable debugging
DEBUG = y
DEBUG = n
ONE_PIPE = n

# Add your debugging flag (or not) to EXTRA_CFLAGS
ifeq ($(DEBUG),y)
DEBFLAGS = -O1 -g -DDEBUG_MODE # "-O" is needed to expand inlines
DEBFLAGS = -O1 -g -D__DEBUG__ # "-O" is needed to expand inlines
else
DEBFLAGS = -Ofast
endif
Expand Down
2 changes: 1 addition & 1 deletion ccpkp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ONE_PIPE = n

# Add your debugging flag (or not) to EXTRA_CFLAGS
ifeq ($(DEBUG),y)
DEBFLAGS = -O1 -g -DDEBUG_MODE # "-O" is needed to expand inlines
DEBFLAGS = -O1 -g -D__DEBUG__ # "-O" is needed to expand inlines
else
DEBFLAGS = -Ofast
endif
Expand Down
2 changes: 1 addition & 1 deletion ccpkp/lfq/lfq.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#endif


#ifdef DEBUG_MODE
#ifdef __DEBUG__
#ifdef __KERNEL__
/* This one if debugging is on, and kernel space */
#define PDEBUG(fmt, args...) printk( KERN_DEBUG "ccp-kpipe: " fmt, ## args)
Expand Down

0 comments on commit be97793

Please sign in to comment.