j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Fri Apr 30 23:56:29 2010 New Revision: 763 URL: http://tracker.coreboot.org/trac/openbios/changeset/763
Log: 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
Modified: trunk/openbios-devel/libopenbios/ofmem_common.c
Modified: trunk/openbios-devel/libopenbios/ofmem_common.c ============================================================================== --- trunk/openbios-devel/libopenbios/ofmem_common.c Fri Apr 30 22:57:27 2010 (r762) +++ trunk/openbios-devel/libopenbios/ofmem_common.c Fri Apr 30 23:56:29 2010 (r763) @@ -108,7 +108,7 @@ 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 @@ } 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 @@
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 );