mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 07:30:26 +09:00
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:
parent
f68ed0bcb8
commit
6c353b34cf
@ -3325,7 +3325,7 @@ static void *xmalloc(size_t size)
|
|||||||
void *p = NULL;
|
void *p = NULL;
|
||||||
|
|
||||||
if (!(p = malloc(size))) {
|
if (!(p = malloc(size))) {
|
||||||
printf("ERROR : memory not allocated\n");
|
printf("ERROR : xmalloc failed\n");
|
||||||
for(;;);
|
for(;;);
|
||||||
}
|
}
|
||||||
return p;
|
return p;
|
||||||
@ -3336,7 +3336,7 @@ static void *xrealloc(void *ptr, size_t size)
|
|||||||
void *p = NULL;
|
void *p = NULL;
|
||||||
|
|
||||||
if (!(p = realloc(ptr, size))) {
|
if (!(p = realloc(ptr, size))) {
|
||||||
printf("ERROR : memory not allocated\n");
|
printf("ERROR : xrealloc failed\n");
|
||||||
for(;;);
|
for(;;);
|
||||||
}
|
}
|
||||||
return p;
|
return p;
|
||||||
|
Loading…
Reference in New Issue
Block a user