aboutsummaryrefslogtreecommitdiff
path: root/common/cli_hush.c
diff options
context:
space:
mode:
authorpeng.wang@smartm.com <peng.wang@smartm.com>2021-05-04 01:45:59 -0700
committerTom Rini <trini@konsulko.com>2021-05-17 17:06:42 -0400
commit6c353b34cfd86797be25de8908695132646ef321 (patch)
tree7d3675c53eed4ec07b0bd92d7ed678bb2da506e9 /common/cli_hush.c
parentf68ed0bcb8a7f86510fe932c4519366776b1671d (diff)
downloadu-boot-6c353b34cfd86797be25de8908695132646ef321.zip
u-boot-6c353b34cfd86797be25de8908695132646ef321.tar.gz
u-boot-6c353b34cfd86797be25de8908695132646ef321.tar.bz2
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 6cff3b1..1467ff8 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;