diff options
author | Tejun Heo <htejun@gmail.com> | 2007-12-15 01:04:58 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-17 20:33:12 -0500 |
commit | c2e366a107e511ad00c2181c52e4150fc086ec0f (patch) | |
tree | 1697b064e0e4c08680fa47daec8b7618ceb425f5 /include/linux | |
parent | 0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18 (diff) |
libata: update ata_*_printk() macros such that level can be a variable
Make prink helpers format @lv together rather than prepending to the
format string as constant.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/libata.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 1ca9b89632f9..3784af395576 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -1013,18 +1013,18 @@ extern void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset, | |||
1013 | * printk helpers | 1013 | * printk helpers |
1014 | */ | 1014 | */ |
1015 | #define ata_port_printk(ap, lv, fmt, args...) \ | 1015 | #define ata_port_printk(ap, lv, fmt, args...) \ |
1016 | printk(lv"ata%u: "fmt, (ap)->print_id , ##args) | 1016 | printk("%sata%u: "fmt, lv, (ap)->print_id , ##args) |
1017 | 1017 | ||
1018 | #define ata_link_printk(link, lv, fmt, args...) do { \ | 1018 | #define ata_link_printk(link, lv, fmt, args...) do { \ |
1019 | if ((link)->ap->nr_pmp_links) \ | 1019 | if ((link)->ap->nr_pmp_links) \ |
1020 | printk(lv"ata%u.%02u: "fmt, (link)->ap->print_id, \ | 1020 | printk("%sata%u.%02u: "fmt, lv, (link)->ap->print_id, \ |
1021 | (link)->pmp , ##args); \ | 1021 | (link)->pmp , ##args); \ |
1022 | else \ | 1022 | else \ |
1023 | printk(lv"ata%u: "fmt, (link)->ap->print_id , ##args); \ | 1023 | printk("%sata%u: "fmt, lv, (link)->ap->print_id , ##args); \ |
1024 | } while(0) | 1024 | } while(0) |
1025 | 1025 | ||
1026 | #define ata_dev_printk(dev, lv, fmt, args...) \ | 1026 | #define ata_dev_printk(dev, lv, fmt, args...) \ |
1027 | printk(lv"ata%u.%02u: "fmt, (dev)->link->ap->print_id, \ | 1027 | printk("%sata%u.%02u: "fmt, lv, (dev)->link->ap->print_id, \ |
1028 | (dev)->link->pmp + (dev)->devno , ##args) | 1028 | (dev)->link->pmp + (dev)->devno , ##args) |
1029 | 1029 | ||
1030 | /* | 1030 | /* |