Skip to contentSkip to conversation

Fix missing printk() parameter in physmap_of.c MTD driver

PATCH David Gibson 1 participant 1 message May 9, 2007 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Squashes a compiler warning, and provides more useful information in the case messed up device tree information.

drivers/mtd/maps/physmap_of.c +1 -1
Index: working-2.6/drivers/mtd/maps/physmap_of.c
===================================================================
@@ -186,7 +186,7 @@ static int __devinit of_physmap_probe(st
 	else {
  		if (strcmp(of_probe, "ROM"))
 			dev_dbg(&dev->dev, "map_probe: don't know probe type "
-			"'%s', mapping as rom\n");
+			"'%s', mapping as rom\n", of_probe);
 		info->mtd = do_map_probe("mtd_rom", &info->map);
 	}
 	if (info->mtd == NULL) {
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson