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;
|
||||
|
||||
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 New Issue
Block a user