aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-probe.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:28 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:28 -0500
commit7b9f25b539c3fa3c7b8c82775488a0021d90220f (patch)
tree9107c2f7f1cfe256809546ccec7496b8c0e23d77 /drivers/ide/ide-probe.c
parent3bb4663bd82e6d536a4b46166b00e93d5072e656 (diff)
ide: add ide_dump_identify() debug helper
* Add ide_dump_identify() debug helper for dumping raw identify data in the hdparm friendly format (== the identify data can be extracted from dmesg output and passed to hdparm --Istdin). * Dump identify data in ide-probe.c::do_identify() if DEBUG is enabled. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r--drivers/ide/ide-probe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c
index edf650b20c67..cdb81471102a 100644
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -129,6 +129,10 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd)
129 129
130 drive->id_read = 1; 130 drive->id_read = 1;
131 local_irq_enable(); 131 local_irq_enable();
132#ifdef DEBUG
133 printk(KERN_INFO "%s: dumping identify data\n", drive->name);
134 ide_dump_identify((u8 *)id);
135#endif
132 ide_fix_driveid(id); 136 ide_fix_driveid(id);
133 137
134#if defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA) 138#if defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA)