git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f68ed0b
)
cli: slighly more clear error messages
author
peng.wang@smartm.com
<peng.wang@smartm.com>
Tue, 4 May 2021 08:45:59 +0000
(
01:45
-0700)
committer
Tom Rini
<trini@konsulko.com>
Mon, 17 May 2021 21:06:42 +0000
(17:06 -0400)
This patch tries to distinguish two error messages.
Signed-off-by: peng.wang@smartm.com <peng.wang@smartm.com>
common/cli_hush.c
patch
|
blob
|
history
diff --git
a/common/cli_hush.c
b/common/cli_hush.c
index
6cff3b1
..
1467ff8
100644
(file)
--- 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 allocat
ed\n");
+ printf("ERROR :
xmalloc fail
ed\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 allocat
ed\n");
+ printf("ERROR :
xrealloc fail
ed\n");
for(;;);
}
return p;