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>
This commit is contained in:
parent
89c8ac578f
commit
80c5692ff8
|
@ -104,7 +104,7 @@ static int bootscript_boot(struct bootentry *entry, int verbose, int dryrun)
|
||||||
|
|
||||||
ret = bootm_boot(&data);
|
ret = bootm_boot(&data);
|
||||||
if (ret)
|
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:
|
out:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ int boot_entry(struct bootentry *be, int verbose, int dryrun)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
printf("booting %s\n", be->title);
|
printf("booting '%s'\n", be->title);
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_WATCHDOG) && boot_watchdog_timeout) {
|
if (IS_ENABLED(CONFIG_WATCHDOG) && boot_watchdog_timeout) {
|
||||||
ret = watchdog_set_timeout(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);
|
ret = be->boot(be, verbose, dryrun);
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
printf("booting %s failed: %s\n", be->title, strerror(-ret));
|
printf("booting '%s' failed: %s\n", be->title, strerror(-ret));
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue