Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289106
b: refs/heads/master
c: 413db8c
h: refs/heads/master
v: v3
  • Loading branch information
Jorgyano Vieira authored and Greg Kroah-Hartman committed Feb 16, 2012
1 parent 783b011 commit 3ddc59b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2140dc9ce752d9b32c84c63c42d157ef863fe84a
refs/heads/master: 413db8c1c75a276c046ea476fee9364ca8df4d12
46 changes: 25 additions & 21 deletions trunk/drivers/staging/crystalhd/crystalhd_misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,26 +203,30 @@ enum _chd_log_levels {
BCMLOG_ENTER_LEAVE = 0x00000008, /* stack tracking */
};

#define BCMLOG_ENTER \
if (g_linklog_level & BCMLOG_ENTER_LEAVE) { \
printk(KERN_DEBUG "Entered %s\n", __func__); \
}

#define BCMLOG_LEAVE \
if (g_linklog_level & BCMLOG_ENTER_LEAVE) { \
printk(KERN_DEBUG "Leaving %s\n", __func__); \
}

#define BCMLOG(trace, fmt, args...) \
if (g_linklog_level & trace) { \
printk(fmt, ##args); \
}

#define BCMLOG_ERR(fmt, args...) \
do { \
if (g_linklog_level & BCMLOG_ERROR) { \
printk(KERN_ERR "*ERR*:%s:%d: "fmt, __FILE__, __LINE__, ##args); \
} \
} while (0);
#define BCMLOG_ENTER \
do { \
if (g_linklog_level & BCMLOG_ENTER_LEAVE) \
printk(KERN_DEBUG "Entered %s\n", __func__); \
} while (0)

#define BCMLOG_LEAVE \
do { \
if (g_linklog_level & BCMLOG_ENTER_LEAVE) \
printk(KERN_DEBUG "Leaving %s\n", __func__); \
} while (0) \

#define BCMLOG(trace, fmt, args...) \
do { \
if (g_linklog_level & trace) \
printk(fmt, ##args); \
} while (0)


#define BCMLOG_ERR(fmt, args...) \
do { \
if (g_linklog_level & BCMLOG_ERROR) \
printk(KERN_ERR "*ERR*:%s:%d: "fmt, \
__FILE__, __LINE__, ##args); \
} while (0)

#endif

0 comments on commit 3ddc59b

Please sign in to comment.