From 28cff651fe53d42a42fa6a516f84e9374a308ff3 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 20 Jun 2007 17:21:49 +0000 Subject: [PATCH] Minor bugfixes: - lib/console.c: BIOS_SPEW never kicked in. - util/xcompile/xcompile: the "function" prefix isn't supported by all shells. Signed-off-by: Patrick Georgi Acked-by: Uwe Hermann git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@364 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- lib/console.c | 2 +- util/xcompile/xcompile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/console.c b/lib/console.c index fa6351c1c6..b63b6f4dcf 100644 --- a/lib/console.c +++ b/lib/console.c @@ -36,7 +36,7 @@ int printk(int msg_level, const char *fmt, ...) va_list args; int i; - if (msg_level >= console_loglevel()) { + if (msg_level > console_loglevel()) { return 0; } diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 154ee6eb52..143545c167 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -25,7 +25,7 @@ ARCH=`uname -m | sed -e s/i.86/x86/ -e s/sun4u/sparc64/ \ -e s/s390x/s390/ -e s/parisc64/parisc/ \ -e s/ppc.*/powerpc/ -e s/mips.*/mips/` -function searchgnu() +searchgnu() { # $1 short name # result: GNU version of that tool on stdout