diff options
author | Borislav Petkov <petkovbb@gmail.com> | 2009-01-02 07:34:47 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:19 -0400 |
commit | 088b1b88609ce89b6ab19d114cdbec94a44aa22c (patch) | |
tree | 2c4f7769e8b2854bcb028dda99c34fe7de3847ae /include/linux | |
parent | 70775e9c627d7094189b96d73fffced6dab30b30 (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ide.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 854eba8b2ba3..9a386501b9c1 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1045,10 +1045,11 @@ enum { | |||
1045 | }; | 1045 | }; |
1046 | 1046 | ||
1047 | /* DRV_NAME has to be defined in the driver before using the macro below */ | 1047 | /* DRV_NAME has to be defined in the driver before using the macro below */ |
1048 | #define __ide_debug_log(lvl, fmt, args...) \ | 1048 | #define __ide_debug_log(lvl, fmt, args...) \ |
1049 | { \ | 1049 | { \ |
1050 | if (unlikely(drive->debug_mask & lvl)) \ | 1050 | if (unlikely(drive->debug_mask & lvl)) \ |
1051 | printk(KERN_INFO DRV_NAME ": " fmt, ## args); \ | 1051 | printk(KERN_INFO DRV_NAME ": %s: " fmt "\n", \ |
1052 | __func__, ## args); \ | ||
1052 | } | 1053 | } |
1053 | 1054 | ||
1054 | /* | 1055 | /* |