mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Introduce CONFIG_DEBUG_OFMEM option (Igor Kovalenko)
Add CONFIG_DEBUG_OFMEM option to configurations which implement OF memory manager. Implement DEBUG_OFMEM macro to be used by debug traces in OF memory manager code. git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@514 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -58,4 +58,10 @@ void *map_io(uint64_t pa, int size);
|
||||
#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_DEBUG_OFMEM)
|
||||
# define OFMEM_TRACE(fmt, ...) do { printk("OFMEM: " fmt, ## __VA_ARGS__); } while (0)
|
||||
#else
|
||||
# define OFMEM_TRACE(fmt, ...) do {} while(0)
|
||||
#endif
|
||||
|
||||
#endif /* _H_OFMEM */
|
||||
|
||||
Reference in New Issue
Block a user