Skip to content

Commit

Permalink
OMAP: VRAM: improve VRAM error prints
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomi Valkeinen authored and Paul Mundt committed Nov 10, 2010
1 parent 32ed303 commit 108409a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions drivers/video/omap2/vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 108409a

Please sign in to comment.