mtd: rawnand: Replace printk() with appropriate pr_*() macro
Using pr_<loglevel>() is more concise than printk(KERN_<LOGLEVEL>). Replace printks having a log level with the appropriate pr_*() macros. Define pr_fmt() and remove other additional macros from the replaced printks. Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
This commit is contained in:

committed by
Boris Brezillon

parent
26777d3721
commit
63fa37f0c5
@@ -144,17 +144,14 @@ struct r852_device {
|
||||
uint8_t ctlreg; /* cached contents of control reg */
|
||||
};
|
||||
|
||||
#define DRV_NAME "r852"
|
||||
|
||||
|
||||
#define dbg(format, ...) \
|
||||
if (debug) \
|
||||
printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__)
|
||||
pr_debug(format "\n", ## __VA_ARGS__)
|
||||
|
||||
#define dbg_verbose(format, ...) \
|
||||
if (debug > 1) \
|
||||
printk(KERN_DEBUG DRV_NAME ": " format "\n", ## __VA_ARGS__)
|
||||
pr_debug(format "\n", ## __VA_ARGS__)
|
||||
|
||||
|
||||
#define message(format, ...) \
|
||||
printk(KERN_INFO DRV_NAME ": " format "\n", ## __VA_ARGS__)
|
||||
pr_info(format "\n", ## __VA_ARGS__)
|
||||
|
Reference in New Issue
Block a user