aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 8154b366bbd1..91e10e6b7565 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -650,7 +650,18 @@ extern void ata_eng_timeout(struct ata_port *ap);
650extern void ata_eh_qc_complete(struct ata_queued_cmd *qc); 650extern void ata_eh_qc_complete(struct ata_queued_cmd *qc);
651extern void ata_eh_qc_retry(struct ata_queued_cmd *qc); 651extern void ata_eh_qc_retry(struct ata_queued_cmd *qc);
652 652
653/*
654 * printk helpers
655 */
656#define ata_port_printk(ap, lv, fmt, args...) \
657 printk(lv"ata%u: "fmt, (ap)->id , ##args)
658
659#define ata_dev_printk(dev, lv, fmt, args...) \
660 printk(lv"ata%u.%02u: "fmt, (dev)->ap->id, (dev)->devno , ##args)
653 661
662/*
663 * qc helpers
664 */
654static inline int 665static inline int
655ata_sg_is_last(struct scatterlist *sg, struct ata_queued_cmd *qc) 666ata_sg_is_last(struct scatterlist *sg, struct ata_queued_cmd *qc)
656{ 667{