]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [MAPS] Fix missing printk() parameter in physmap_of.c MTD driver
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 9 May 2007 01:55:51 +0000 (11:55 +1000)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 9 May 2007 08:38:48 +0000 (09:38 +0100)
Squashes a compiler warning, and provides more useful information in
the case messed up device tree information.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/physmap_of.c

index 7efe744ad31e63c20fadef5c0cfc474e476d6658..8ec2fbe10744442ad53313dedeb1770d4d745d2c 100644 (file)
@@ -186,7 +186,7 @@ static int __devinit of_physmap_probe(struct of_device *dev, const struct of_dev
        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) {