ofmem: Fix and enable ofmem_claim() trace output

A printk statement was commented out and there were format string mismatches for ppc target.
Use OFMEM_TRACE to more easily enable/disable it and use FMT_ucellx as in other trace output.
Note that this changes the alignment from decimal to hexidecimal notation.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@881 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Andreas Färber
2010-10-03 14:28:12 +00:00
committed by Blue Swirl
parent ee4c2ebdfa
commit 59cbed0d8a

View File

@@ -477,7 +477,7 @@ ucell ofmem_claim( ucell addr, ucell size, ucell align )
ucell virt, phys;
ucell offs = addr & 0xfff;
/* printk("+ ofmem_claim %08lx %lx %ld\n", addr, size, align ); */
OFMEM_TRACE("ofmem_claim " FMT_ucellx " " FMT_ucellx " " FMT_ucellx "\n", addr, size, align );
virt = phys = 0;
if( !align ) {
if( is_free(addr, size, ofmem->virt_range) &&