[PATCH 2/4] common: boot: replace printf by pr_info/warn variants
Marco Felsch
m.felsch at pengutronix.de
Fri May 21 09:34:33 PDT 2021
This allows us to control the output behaviour e.g. booting silently
to improve boot time. Furthermore it adds a 'WARNING:' prefixed output
in case of pr_warn which is colored as well (depending on your
terminal). This helps us to identify unwanted behaviour.
Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
---
common/boot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/boot.c b/common/boot.c
index 07b67734d8..8220b8d3fb 100644
--- a/common/boot.c
+++ b/common/boot.c
@@ -138,7 +138,7 @@ int boot_entry(struct bootentry *be, int verbose, int dryrun)
{
int ret;
- printf("Booting entry '%s'\n", be->title);
+ pr_info("Booting entry '%s'\n", be->title);
if (IS_ENABLED(CONFIG_WATCHDOG) && boot_watchdog_timeout) {
boot_enabled_watchdog = watchdog_get_default();
@@ -319,7 +319,7 @@ void bootsources_menu(struct bootentries *bootentries, int timeout)
struct menu_entry *back_entry;
if (!IS_ENABLED(CONFIG_MENU)) {
- printf("no menu support available\n");
+ pr_warn("no menu support available\n");
return;
}
--
2.29.2
More information about the barebox
mailing list