Promote out of memory messages from debug level to standard console messages. This makes it possible to determine that you've

not allocated enough memory in qemu without having to rebuild with CONFIG_DEBUG_OFMEM enabled.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@763 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-04-30 21:56:29 +00:00
committed by Mark Cave-Ayland
parent b46a6a523e
commit d183b53338

View File

@@ -108,7 +108,7 @@ void* ofmem_malloc( size_t size )
top = ofmem_arch_get_heap_top(); top = ofmem_arch_get_heap_top();
if( (ucell)ofmem->next_malloc + size > top ) { if( (ucell)ofmem->next_malloc + size > top ) {
OFMEM_TRACE("out of malloc memory (%x)!\n", size ); printk("out of malloc memory (%x)!\n", size );
return NULL; return NULL;
} }
@@ -396,7 +396,7 @@ static ucell ofmem_claim_phys_( ucell phys, ucell size, ucell align,
} }
phys = find_area( align, size, ofmem->phys_range, min, max, reverse ); phys = find_area( align, size, ofmem->phys_range, min, max, reverse );
if( phys == -1 ) { if( phys == -1 ) {
OFMEM_TRACE("ofmem_claim_phys - out of space\n"); printk("ofmem_claim_phys - out of space (failed request for " FMT_ucellx " bytes)\n", size);
return -1; return -1;
} }
add_entry( phys, size, &ofmem->phys_range ); add_entry( phys, size, &ofmem->phys_range );
@@ -431,7 +431,7 @@ static ucell ofmem_claim_virt_( ucell virt, ucell size, ucell align,
virt = find_area( align, size, ofmem->virt_range, min, max, reverse ); virt = find_area( align, size, ofmem->virt_range, min, max, reverse );
if( virt == -1 ) { if( virt == -1 ) {
OFMEM_TRACE("ofmem_claim_virt - out of space\n"); printk("ofmem_claim_virt - out of space (failed request for " FMT_ucellx " bytes)\n", size);
return -1; return -1;
} }
add_entry( virt, size, &ofmem->virt_range ); add_entry( virt, size, &ofmem->virt_range );