aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorpeng.wang@smartm.com2021-05-04 01:45:59 -0700
committerTom Rini2021-05-17 17:06:42 -0400
commit6c353b34cfd86797be25de8908695132646ef321 (patch)
tree7d3675c53eed4ec07b0bd92d7ed678bb2da506e9 /common
parentf68ed0bcb8a7f86510fe932c4519366776b1671d (diff)
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')
-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 6cff3b11850..1467ff81b35 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;