[coreboot] [FILO] r96 - trunk/filo/drivers

svn at coreboot.org svn at coreboot.org
Sun May 24 16:53:39 CEST 2009


Author: stepan
Date: 2009-05-24 16:53:39 +0200 (Sun, 24 May 2009)
New Revision: 96

Modified:
   trunk/filo/drivers/ide_new.c
Log:
fix a warning in ide driver


Modified: trunk/filo/drivers/ide_new.c
===================================================================
--- trunk/filo/drivers/ide_new.c	2009-05-13 09:49:44 UTC (rev 95)
+++ trunk/filo/drivers/ide_new.c	2009-05-24 14:53:39 UTC (rev 96)
@@ -63,20 +63,21 @@
  */
 #undef ATA_PEDANTIC
 
-#ifdef CONFIG_DEBUG_IDE
+// debug function currently not used.
+#if defined(CONFIG_DEBUG_IDE) && 0
 static void dump_drive(struct ide_drive *drive)
 {
-	printk("IDE DRIVE @%lx:\n", (unsigned long)drive);
-	printk("unit: %d\n",drive->unit);
-	printk("present: %d\n",drive->present);
-	printk("type: %d\n",drive->type);
-	printk("media: %d\n",drive->media);
-	printk("model: %s\n",drive->model);
-	printk("nr: %d\n",drive->nr);
-	printk("cyl: %d\n",drive->cyl);
-	printk("head: %d\n",drive->head);
-	printk("sect: %d\n",drive->sect);
-	printk("bs: %d\n",drive->bs);
+	debug("IDE DRIVE @%lx:\n", (unsigned long)drive);
+	debug("unit: %d\n",drive->unit);
+	debug("present: %d\n",drive->present);
+	debug("type: %d\n",drive->type);
+	debug("media: %d\n",drive->media);
+	debug("model: %s\n",drive->model);
+	debug("nr: %d\n",drive->nr);
+	debug("cyl: %d\n",drive->cyl);
+	debug("head: %d\n",drive->head);
+	debug("sect: %d\n",drive->sect);
+	debug("bs: %d\n",drive->bs);
 }
 #endif
 





More information about the coreboot mailing list