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:
parent
70775e9c62
commit
088b1b8860
6 changed files with 83 additions and 93 deletions
|
@ -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); \
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue