mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue