From d183b533385e1ec23f696af635cd7981a91934ad Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Fri, 30 Apr 2010 21:56:29 +0000 Subject: [PATCH] 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 git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@763 f158a5a8-5612-0410-a976-696ce0be7e32 --- libopenbios/ofmem_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libopenbios/ofmem_common.c b/libopenbios/ofmem_common.c index c2426d2..8f10118 100644 --- a/libopenbios/ofmem_common.c +++ b/libopenbios/ofmem_common.c @@ -108,7 +108,7 @@ void* ofmem_malloc( size_t size ) top = ofmem_arch_get_heap_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; } @@ -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 ); 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; } 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 ); 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; } add_entry( virt, size, &ofmem->virt_range );