summaryrefslogtreecommitdiffstats
path: root/common/startup.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-03-08 12:59:40 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-09 11:18:08 +0100
commit42459443b6e81abbad584668024ac93cac4db420 (patch)
treed3000fb92f3f3ff3a6f8e706ae4197a13392ff42 /common/startup.c
parent7a8014e6891168846a64c3d104f246ecb1f1d673 (diff)
downloadbarebox-42459443b6e81abbad584668024ac93cac4db420.tar.gz
startup: switch to pr_xxx
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/startup.c')
-rw-r--r--common/startup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/startup.c b/common/startup.c
index e49cc4c..ff00ca7 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -120,7 +120,7 @@ void __noreturn start_barebox(void)
ret = envfs_load(default_environment_path, "/env", 0);
if (ret && IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT)) {
- printf("no valid environment found on %s. "
+ pr_err("no valid environment found on %s. "
"Using default environment\n",
default_environment_path);
envfs_load("/dev/defaultenv", "/env", 0);
@@ -128,17 +128,17 @@ void __noreturn start_barebox(void)
}
if (IS_ENABLED(CONFIG_COMMAND_SUPPORT)) {
- printf("running /env/bin/init...\n");
+ pr_info("running /env/bin/init...\n");
if (!stat("/env/bin/init", &s)) {
run_command("source /env/bin/init", 0);
} else {
- printf("not found\n");
+ pr_err("/env/bin/init not found\n");
}
}
if (!barebox_main) {
- printf("No main function! aborting.\n");
+ pr_err("No main function! aborting.\n");
hang();
}