Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217547
b: refs/heads/master
c: 77006a0
h: refs/heads/master
i:
  217545: 6b70611
  217543: d80c3a0
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Oct 26, 2010
1 parent aaf8399 commit 50b4b17
Show file tree
Hide file tree
Showing 2 changed files with 6 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: f5d87d851d76a390d0fab2f77bd1d563d69ee586
refs/heads/master: 77006a0a828249dd69341f960043ee41e7487aa0
5 changes: 5 additions & 0 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ asmlinkage int vprintk(const char *fmt, va_list args)
asmlinkage int printk(const char * fmt, ...)
__attribute__ ((format (printf, 1, 2))) __cold;

/*
* Please don't use printk_ratelimit(), because it shares ratelimiting state
* with all other unrelated printk_ratelimit() callsites. Instead use
* printk_ratelimited() or plain old __ratelimit().
*/
extern int __printk_ratelimit(const char *func);
#define printk_ratelimit() __printk_ratelimit(__func__)
extern bool printk_timed_ratelimit(unsigned long *caller_jiffies,
Expand Down

0 comments on commit 50b4b17

Please sign in to comment.