diff options
author | Quentin Schulz | 2018-07-09 12:16:25 -0500 |
---|---|---|
committer | Tom Rini | 2018-07-20 14:55:08 -0500 |
commit | 6c90f62338226040513742921e718058f3273afb (patch) | |
tree | b09b257d31ac3e2876ae4fa158e5bc3025737f1c /env | |
parent | d219415544f099c5e553a556dc277377b9dbf64f (diff) | |
download | u-boot-6c90f62338226040513742921e718058f3273afb.tar.gz u-boot-6c90f62338226040513742921e718058f3273afb.tar.xz u-boot-6c90f62338226040513742921e718058f3273afb.zip |
env: add the same prefix to error messages to make it detectable by tests
The error message should start with `## Error: ` so that it's easily
detectable by tests without needing to have a complex regexp for
matching all possible error message patterns.
Let's add the `## Error: ` prefix to the error messages since it's the
one already in use.
Suggested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'env')
-rw-r--r-- | env/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/env/common.c b/env/common.c index 1430100c85..3317cef355 100644 --- a/env/common.c +++ b/env/common.c | |||
@@ -79,7 +79,8 @@ void set_default_env(const char *s, int flags) | |||
79 | if (himport_r(&env_htab, (char *)default_environment, | 79 | if (himport_r(&env_htab, (char *)default_environment, |
80 | sizeof(default_environment), '\0', flags, 0, | 80 | sizeof(default_environment), '\0', flags, 0, |
81 | 0, NULL) == 0) | 81 | 0, NULL) == 0) |
82 | pr_err("Environment import failed: errno = %d\n", errno); | 82 | pr_err("## Error: Environment import failed: errno = %d\n", |
83 | errno); | ||
83 | 84 | ||
84 | gd->flags |= GD_FLG_ENV_READY; | 85 | gd->flags |= GD_FLG_ENV_READY; |
85 | gd->flags |= GD_FLG_ENV_DEFAULT; | 86 | gd->flags |= GD_FLG_ENV_DEFAULT; |