projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3adc69
)
string.c para_realloc(): report requested size on realloc failures
author
Andre Noll
<maan@systemlinux.org>
Sun, 4 Mar 2007 19:10:27 +0000
(20:10 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Sun, 4 Mar 2007 19:10:27 +0000
(20:10 +0100)
string.c
patch
|
blob
|
history
diff --git
a/string.c
b/string.c
index 91f96bdccef7441194eff2446b09612ad2b77387..0a55ed20c299144aeaf048a3c98db5dafdae4978 100644
(file)
--- a/
string.c
+++ b/
string.c
@@
-49,7
+49,8
@@
__must_check __malloc void *para_realloc(void *p, size_t size)
* to realloc is equivalent to malloc(size)
*/
if (!(p = realloc(p, size))) {
- PARA_EMERG_LOG("%s", "realloc failed, aborting\n");
+ PARA_EMERG_LOG("realloc failed (size = %zu), aborting\n",
+ size);
exit(EXIT_FAILURE);
}
return p;