aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-16 04:11:23 +0000
committerMike Frysinger <vapier@gentoo.org>2008-11-16 04:11:23 +0000
commita7afc3f309c901c544c1be8ff72d61d2f45137f8 (patch)
tree4eab2d95921d9663c82af9ab4c5d3be6a4a0b114 /libsandbox/memory.c
parentlibsbutil: simple custom printf() replacement (diff)
downloadsandbox-a7afc3f309c901c544c1be8ff72d61d2f45137f8.tar.gz
sandbox-a7afc3f309c901c544c1be8ff72d61d2f45137f8.tar.bz2
sandbox-a7afc3f309c901c544c1be8ff72d61d2f45137f8.zip
unify SB_E{INFO,WARN,ERROR} functions and have them call the internal sb_printf function
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/memory.c')
-rw-r--r--libsandbox/memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsandbox/memory.c b/libsandbox/memory.c
index 3c6a9a6..cd208dd 100644
--- a/libsandbox/memory.c
+++ b/libsandbox/memory.c
@@ -31,8 +31,7 @@ void free(void *ptr)
if (ptr == NULL)
return;
if (munmap(SB_MALLOC_TO_MMAP(ptr), SB_MALLOC_TO_SIZE(ptr))) {
- int color = ((is_env_on(ENV_NOCOLOR)) ? 0 : 1);
- SB_EERROR(color, "sandbox memory corruption", " free(%p): %s\n",
+ SB_EERROR("sandbox memory corruption", " free(%p): %s\n",
ptr, strerror(errno));
#ifdef HAVE_BACKTRACE
void *funcs[10];