mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mm/internal.h: don't split printk call in two
All users of mminit_dprintk pass a compile-time constant as level, so this just makes gcc emit a single printk call instead of two. Signed-off-by: Rasmus Villemoes <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: David Rientjes <[email protected]> Cc: Vishnu Pratap Singh <[email protected]> Cc: Pintu Kumar <[email protected]> Cc: Michal Nazarewicz <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Tim Chen <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Li Zefan <[email protected]> Cc: Tejun Heo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2d2f5119b8
commit
fc5199d1a9
1 changed files with 4 additions and 2 deletions
|
|
@ -351,8 +351,10 @@ extern int mminit_loglevel;
|
|||
#define mminit_dprintk(level, prefix, fmt, arg...) \
|
||||
do { \
|
||||
if (level < mminit_loglevel) { \
|
||||
printk(level <= MMINIT_WARNING ? KERN_WARNING : KERN_DEBUG); \
|
||||
printk(KERN_CONT "mminit::" prefix " " fmt, ##arg); \
|
||||
if (level <= MMINIT_WARNING) \
|
||||
printk(KERN_WARNING "mminit::" prefix " " fmt, ##arg); \
|
||||
else \
|
||||
printk(KERN_DEBUG "mminit::" prefix " " fmt, ##arg); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue