From 3a9d222c1ebf1044be1358149f8ef22be9a0da21 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sat, 18 Aug 2018 12:38:32 +0200 Subject: drivers/pc80/rtc: do not warn if CMOS options are unavailable Callers should have a default ready and get noticed by the return value of get_option(). No need to scare log readers at this location. Change-Id: Ied373d8a02afdc8d1017c9f41d9004e3797dfbb3 Signed-off-by: Stefan Tauner Reviewed-on: https://review.coreboot.org/28215 Reviewed-by: Angel Pons Reviewed-by: Nico Huber Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/drivers/pc80/rtc/mc146818rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/pc80') diff --git a/src/drivers/pc80/rtc/mc146818rtc.c b/src/drivers/pc80/rtc/mc146818rtc.c index 34db4c3424..3b22a46298 100644 --- a/src/drivers/pc80/rtc/mc146818rtc.c +++ b/src/drivers/pc80/rtc/mc146818rtc.c @@ -303,7 +303,7 @@ enum cb_err get_option(void *dest, const char *name) } } if (!found) { - printk(BIOS_DEBUG, "WARNING: No CMOS option '%s'.\n", name); + printk(BIOS_DEBUG, "No CMOS option '%s'.\n", name); rdev_munmap(&rdev, ct); UNLOCK_NVRAM_CBFS_SPINLOCK(); return CB_CMOS_OPTION_NOT_FOUND; -- cgit v1.2.3