Skip to content
Snippets Groups Projects
Commit 99f23dc9 authored by Andrew Cooks's avatar Andrew Cooks
Browse files

Merge branch 'topic/remove-unused-DBG1-macro' into cleanup/v0.3.6.14.3

parents 312349a8 c4bc84b1
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,12 @@ sed -i 's|/\*\s*.*=.*->.*;.*\*/||g' *.c *.h
sed -i 's|\(.*g_ftrace.*\)||g' *.{c,h}
# remove unused DBG1 macro
sed -i 's|\(#define DBG1.*\)||g' tn40.h
# confirm that it really is unsused and gone
! grep -Iq DBG1 *.{c,h} || echo 'unexpected DBG1 macro remaining.' && false
# Insert new cleanup steps above this comment.
# Keep Lindent as the last step.
......
......@@ -114,7 +114,7 @@ extern int g_memLog;
#if defined(TN40_DEBUG)
extern int g_dbg;
#define DBG_ON g_dbg = 1
#define DBG1_ON g_dbg = 2
#define DBG_OFF g_dbg = 0
#else
#define DBG_ON
......@@ -123,16 +123,16 @@ extern int g_dbg;
#if defined(TN40_DEBUG) && defined(TN40_MEMLOG)
#define DBG(fmt, args...) if (g_memLog) memLog(fmt, ##args); else if (g_dbg) printk(KERN_ERR BDX_DRV_NAME": ""%s:%-5d: " fmt, __func__, __LINE__, ## args)
#define DBG1(fmt, args...) if (g_memLog > 1) memLog(fmt, ##args); else if (g_dbg > 1) printk(KERN_ERR BDX_DRV_NAME": ""%s:%-5d: " fmt, __func__, __LINE__, ## args)
#elif defined(TN40_MEMLOG)
#define DBG(fmt, args...) if (g_memLog) memLog(fmt, ##args)
#define DBG1(fmt, args...) if (g_memLog > 1) memLog(fmt, ##args)
#elif defined(TN40_DEBUG)
#define DBG(fmt, args...) if (g_dbg) printk(KERN_ERR BDX_DRV_NAME": ""%s:%-5d: " fmt, __func__, __LINE__, ## args)
#define DBG1(fmt, args...) if (g_dbg > 1) printk(KERN_ERR BDX_DRV_NAME": ""%s:%-5d: " fmt, __func__, __LINE__, ## args)
#else
#define DBG(fmt, args...)
#define DBG1(fmt, args...)
#endif
/* F T R A C E */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment