From: peng.wang@smartm.com Date: Tue, 4 May 2021 08:45:59 +0000 (-0700) Subject: cli: slighly more clear error messages X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=6c353b34cfd86797be25de8908695132646ef321;p=u-boot.git cli: slighly more clear error messages This patch tries to distinguish two error messages. Signed-off-by: peng.wang@smartm.com --- 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;