From 29408e5cf8ded1b274155170fb56e9d576efd79b Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Mon, 15 May 2006 20:57:55 +0900 Subject: [PATCH] --- yaml --- r: 29297 b: refs/heads/master c: 61440db61fe4945ad9f7b32b4d6a22b17174aa1f h: refs/heads/master i: 29295: 6c06e0fbf0f21c97defb9e3c4b1d5714744130c2 v: v3 --- [refs] | 2 +- trunk/include/linux/libata.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index fb35f620bd1d..79f3bb0d15bb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3373efd89dead4ce7818d685729e0431448357c9 +refs/heads/master: 61440db61fe4945ad9f7b32b4d6a22b17174aa1f diff --git a/trunk/include/linux/libata.h b/trunk/include/linux/libata.h index 8154b366bbd1..91e10e6b7565 100644 --- a/trunk/include/linux/libata.h +++ b/trunk/include/linux/libata.h @@ -650,7 +650,18 @@ extern void ata_eng_timeout(struct ata_port *ap); extern void ata_eh_qc_complete(struct ata_queued_cmd *qc); extern void ata_eh_qc_retry(struct ata_queued_cmd *qc); +/* + * printk helpers + */ +#define ata_port_printk(ap, lv, fmt, args...) \ + printk(lv"ata%u: "fmt, (ap)->id , ##args) + +#define ata_dev_printk(dev, lv, fmt, args...) \ + printk(lv"ata%u.%02u: "fmt, (dev)->ap->id, (dev)->devno , ##args) +/* + * qc helpers + */ static inline int ata_sg_is_last(struct scatterlist *sg, struct ata_queued_cmd *qc) {