Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c2e366a107e511ad00c2181c52e4150fc086ec0f
Commit:     c2e366a107e511ad00c2181c52e4150fc086ec0f
Parent:     0d02f0b22b678b9d6c8ac8cad7b4cfbbdf6fab18
Author:     Tejun Heo <[EMAIL PROTECTED]>
AuthorDate: Sat Dec 15 15:04:58 2007 +0900
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Mon Dec 17 20:33:12 2007 -0500

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 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 1ca9b89..3784af3 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,
  * printk helpers
  */
 #define ata_port_printk(ap, lv, fmt, args...) \
-       printk(lv"ata%u: "fmt, (ap)->print_id , ##args)
+       printk("%sata%u: "fmt, lv, (ap)->print_id , ##args)
 
 #define ata_link_printk(link, lv, fmt, args...) do { \
        if ((link)->ap->nr_pmp_links) \
-               printk(lv"ata%u.%02u: "fmt, (link)->ap->print_id, \
+               printk("%sata%u.%02u: "fmt, lv, (link)->ap->print_id,   \
                       (link)->pmp , ##args); \
        else \
-               printk(lv"ata%u: "fmt, (link)->ap->print_id , ##args); \
+               printk("%sata%u: "fmt, lv, (link)->ap->print_id , ##args); \
        } while(0)
 
 #define ata_dev_printk(dev, lv, fmt, args...) \
-       printk(lv"ata%u.%02u: "fmt, (dev)->link->ap->print_id, \
+       printk("%sata%u.%02u: "fmt, lv, (dev)->link->ap->print_id,      \
               (dev)->link->pmp + (dev)->devno , ##args)
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to