OMAP: VRAM: improve VRAM error prints
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Wed, 10 Nov 2010 09:45:18 +0000 (11:45 +0200)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 10 Nov 2010 11:51:13 +0000 (20:51 +0900)
Improve the error prints to give more information about the offending
address & size.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/omap2/vram.c

index fed2a72bc6b60a1986172298fbb67bc0eca2b3bc..bb5ee0663e65be242f58cbf890de4d3b8ef703c8 100644 (file)
@@ -554,9 +554,15 @@ void __init omap_vram_reserve_sdram_memblock(void)
        size = PAGE_ALIGN(size);
 
        if (paddr) {
-               if ((paddr & ~PAGE_MASK) ||
-                   !memblock_is_region_memory(paddr, size)) {
-                       pr_err("Illegal SDRAM region for VRAM\n");
+               if (paddr & ~PAGE_MASK) {
+                       pr_err("VRAM start address 0x%08x not page aligned\n",
+                                       paddr);
+                       return;
+               }
+
+               if (!memblock_is_region_memory(paddr, size)) {
+                       pr_err("Illegal SDRAM region 0x%08x..0x%08x for VRAM\n",
+                                       paddr, paddr + size - 1);
                        return;
                }