diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-22 14:18:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-26 08:31:36 +0200 |
commit | 80c5692ff883183c346cd089152b564d04c54a27 (patch) | |
tree | d1ca4321c5e1b42c28233191e4df1ffac398f6d6 /common/boot.c | |
parent | 89c8ac578f309eb2d9aa86e9c507d2fa117d0308 (diff) | |
download | barebox-80c5692ff883183c346cd089152b564d04c54a27.tar.gz barebox-80c5692ff883183c346cd089152b564d04c54a27.tar.xz |
boot: add single quotes when printing boot target names
It's nicer to read when target names have quotes around them, it
makes it clear that this is a string passed in somewhere.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/boot.c')
-rw-r--r-- | common/boot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/boot.c b/common/boot.c index 4d2934933b..e66bacbb0e 100644 --- a/common/boot.c +++ b/common/boot.c @@ -104,7 +104,7 @@ static int bootscript_boot(struct bootentry *entry, int verbose, int dryrun) ret = bootm_boot(&data); if (ret) - pr_err("Booting %s failed: %s\n", basename(bs->scriptpath), strerror(-ret)); + pr_err("Booting '%s' failed: %s\n", basename(bs->scriptpath), strerror(-ret)); out: return ret; } @@ -130,7 +130,7 @@ int boot_entry(struct bootentry *be, int verbose, int dryrun) { int ret; - printf("booting %s\n", be->title); + printf("booting '%s'\n", be->title); if (IS_ENABLED(CONFIG_WATCHDOG) && boot_watchdog_timeout) { ret = watchdog_set_timeout(boot_watchdog_timeout); @@ -141,7 +141,7 @@ int boot_entry(struct bootentry *be, int verbose, int dryrun) ret = be->boot(be, verbose, dryrun); if (ret) - printf("booting %s failed: %s\n", be->title, strerror(-ret)); + printf("booting '%s' failed: %s\n", be->title, strerror(-ret)); return ret; } |