Skip to contentSkip to conversation

ide-cd: call blk_dump_rq_flags() on "missing data" in cdrom_newpc_intr()

PATCH In review Bartlomiej Zolnierkiewicz 2 participants 2 messages Dec 20, 2007 – Dec 21, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 46/63 ide-cd: call blk_dump_rq_flags() on "missing data" in cdrom_newpc_intr()

---
 drivers/ide/ide-cd.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/ide/ide-cd.c +5 -1
Index: b/drivers/ide/ide-cd.c
===================================================================
@@ -1343,7 +1343,11 @@ static ide_startstop_t cdrom_newpc_intr(
 		}
 
 		if (!ptr) {
-			printk(KERN_ERR "%s: confused, missing data\n", drive->name);
+			printk(KERN_ERR "%s: confused, missing data\n",
+					drive->name);
+			blk_dump_rq_flags(rq, rq_data_dir(rq)
+					      ? "cdrom_newpc_intr, write"
+					      : "cdrom_newpc_intr, read");
 			break;
 		}