mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix broken compilation when debugging enabled
git-svn-id: svn://coreboot.org/openbios/openbios-devel@129 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -108,7 +108,7 @@ static int obp_proplen(int node, char *name)
|
||||
}
|
||||
}
|
||||
|
||||
#if CONFIG_DEBUG_OBP
|
||||
#ifdef CONFIG_DEBUG_OBP
|
||||
static int looks_like_string(char *str, int len)
|
||||
{
|
||||
int i;
|
||||
@@ -163,7 +163,7 @@ static int obp_getprop(int node, char *name, char *value)
|
||||
else
|
||||
str = "NULL";
|
||||
|
||||
#if CONFIG_DEBUG_OBP
|
||||
#ifdef CONFIG_DEBUG_OBP
|
||||
if (looks_like_string(str, len)) {
|
||||
DPRINTF("obp_getprop(0x%x, %s) = %s\n", node, name, str);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user