Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143623
b: refs/heads/master
c: 4ccb457
h: refs/heads/master
i:
  143621: 41e2fd4
  143619: 266d506
  143615: 643c9b9
v: v3
  • Loading branch information
Michael Ellerman authored and Greg Kroah-Hartman committed Apr 16, 2009
1 parent ba50cc2 commit 8a75271
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13977091a988fb0d21821c2221ddc920eba36b79
refs/heads/master: 4ccb457966391295bd9b3644f6bdc9ddd97b6051
9 changes: 9 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,15 @@ static inline char *pack_hex_byte(char *buf, u8 byte)
#define pr_cont(fmt, ...) \
printk(KERN_CONT fmt, ##__VA_ARGS__)

/* pr_devel() should produce zero code unless DEBUG is defined */
#ifdef DEBUG
#define pr_devel(fmt, ...) \
printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
#else
#define pr_devel(fmt, ...) \
({ if (0) printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); 0; })
#endif

/* If you are writing a driver, please use dev_dbg instead */
#if defined(DEBUG)
#define pr_debug(fmt, ...) \
Expand Down

0 comments on commit 8a75271

Please sign in to comment.