ide: improve debugging scheme
and more specifically, push __func__ into debug macro thus making ide_debug_log() calls shorter and more readable. Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
This commit is contained in:
committed by
Bartlomiej Zolnierkiewicz
parent
70775e9c62
commit
088b1b8860
@ -1045,10 +1045,11 @@ enum {
|
||||
};
|
||||
|
||||
/* DRV_NAME has to be defined in the driver before using the macro below */
|
||||
#define __ide_debug_log(lvl, fmt, args...) \
|
||||
{ \
|
||||
if (unlikely(drive->debug_mask & lvl)) \
|
||||
printk(KERN_INFO DRV_NAME ": " fmt, ## args); \
|
||||
#define __ide_debug_log(lvl, fmt, args...) \
|
||||
{ \
|
||||
if (unlikely(drive->debug_mask & lvl)) \
|
||||
printk(KERN_INFO DRV_NAME ": %s: " fmt "\n", \
|
||||
__func__, ## args); \
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user