OMAP: VRAM: improve VRAM error prints

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>

authored by Tomi Valkeinen and committed by Paul Mundt 108409a8 32ed3036

+9 -3
+9 -3
drivers/video/omap2/vram.c
··· 554 554 size = PAGE_ALIGN(size); 555 555 556 556 if (paddr) { 557 - if ((paddr & ~PAGE_MASK) || 558 - !memblock_is_region_memory(paddr, size)) { 559 - pr_err("Illegal SDRAM region for VRAM\n"); 557 + if (paddr & ~PAGE_MASK) { 558 + pr_err("VRAM start address 0x%08x not page aligned\n", 559 + paddr); 560 + return; 561 + } 562 + 563 + if (!memblock_is_region_memory(paddr, size)) { 564 + pr_err("Illegal SDRAM region 0x%08x..0x%08x for VRAM\n", 565 + paddr, paddr + size - 1); 560 566 return; 561 567 } 562 568