summaryrefslogtreecommitdiff
path: root/common/cli_hush.c
diff options
context:
space:
mode:
authorpeng.wang@smartm.com <peng.wang@smartm.com>2021-05-04 11:45:59 +0300
committerTom Rini <trini@konsulko.com>2021-05-18 00:06:42 +0300
commit6c353b34cfd86797be25de8908695132646ef321 (patch)
tree7d3675c53eed4ec07b0bd92d7ed678bb2da506e9 /common/cli_hush.c
parentf68ed0bcb8a7f86510fe932c4519366776b1671d (diff)
downloadu-boot-6c353b34cfd86797be25de8908695132646ef321.tar.xz
cli: slighly more clear error messages
This patch tries to distinguish two error messages. Signed-off-by: peng.wang@smartm.com <peng.wang@smartm.com>
Diffstat (limited to 'common/cli_hush.c')
-rw-r--r--common/cli_hush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cli_hush.c b/common/cli_hush.c
index 6cff3b1185..1467ff81b3 100644
--- a/common/cli_hush.c
+++ b/common/cli_hush.c
@@ -3325,7 +3325,7 @@ static void *xmalloc(size_t size)
void *p = NULL;
if (!(p = malloc(size))) {
- printf("ERROR : memory not allocated\n");
+ printf("ERROR : xmalloc failed\n");
for(;;);
}
return p;
@@ -3336,7 +3336,7 @@ static void *xrealloc(void *ptr, size_t size)
void *p = NULL;
if (!(p = realloc(ptr, size))) {
- printf("ERROR : memory not allocated\n");
+ printf("ERROR : xrealloc failed\n");
for(;;);
}
return p;