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>
This commit is contained in:
peng.wang@smartm.com 2021-05-04 01:45:59 -07:00 committed by Tom Rini
parent f68ed0bcb8
commit 6c353b34cf

View file

@ -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;