patch to correct time units in printk of erase time (cfi_probe.c)
Galen Seitz
galens at seitzassoc.com
Fri May 10 16:06:46 EDT 2002
This patch changes the time units in the printk statements which display
the erase timeouts from microseconds to milliseconds. This is in
drivers/mtd/chips/.
galen
--- cfi_probe.c.orig Thu Oct 4 15:14:59 2001
+++ cfi_probe.c Fri May 10 12:39:59 2002
@@ -250,11 +250,11 @@
else
printk("Full buffer write not supported\n");
- printk("Typical block erase timeout: %d µs\n", 1<<cfip->BlockEraseTimeoutTyp);
- printk("Maximum block erase timeout: %d µs\n", (1<<cfip->BlockEraseTimeoutMax) * (1<<cfip->BlockEraseTimeoutTyp));
+ printk("Typical block erase timeout: %d ms\n", 1<<cfip->BlockEraseTimeoutTyp);
+ printk("Maximum block erase timeout: %d ms\n", (1<<cfip->BlockEraseTimeoutMax) * (1<<cfip->BlockEraseTimeoutTyp));
if (cfip->ChipEraseTimeoutTyp || cfip->ChipEraseTimeoutMax) {
- printk("Typical chip erase timeout: %d µs\n", 1<<cfip->ChipEraseTimeoutTyp);
- printk("Maximum chip erase timeout: %d µs\n", (1<<cfip->ChipEraseTimeoutMax) * (1<<cfip->ChipEraseTimeoutTyp));
+ printk("Typical chip erase timeout: %d ms\n", 1<<cfip->ChipEraseTimeoutTyp);
+ printk("Maximum chip erase timeout: %d ms\n", (1<<cfip->ChipEraseTimeoutMax) * (1<<cfip->ChipEraseTimeoutTyp));
}
else
printk("Chip erase not supported\n");
More information about the linux-mtd
mailing list