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:
Blue Swirl
2007-04-24 20:00:02 +00:00
parent 8b8db9a6ac
commit 0e4a65dbb9

View File

@@ -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) static int looks_like_string(char *str, int len)
{ {
int i; int i;
@@ -163,7 +163,7 @@ static int obp_getprop(int node, char *name, char *value)
else else
str = "NULL"; str = "NULL";
#if CONFIG_DEBUG_OBP #ifdef CONFIG_DEBUG_OBP
if (looks_like_string(str, len)) { if (looks_like_string(str, len)) {
DPRINTF("obp_getprop(0x%x, %s) = %s\n", node, name, str); DPRINTF("obp_getprop(0x%x, %s) = %s\n", node, name, str);
} else { } else {