diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-16 04:11:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-16 04:11:23 +0000 |
commit | a7afc3f309c901c544c1be8ff72d61d2f45137f8 (patch) | |
tree | 4eab2d95921d9663c82af9ab4c5d3be6a4a0b114 /src | |
parent | libsbutil: simple custom printf() replacement (diff) | |
download | sandbox-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 'src')
-rw-r--r-- | src/sandbox.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sandbox.c b/src/sandbox.c index 906fe95..d77f895 100644 --- a/src/sandbox.c +++ b/src/sandbox.c @@ -87,7 +87,7 @@ int print_sandbox_log(char *sandbox_log) { int sandbox_log_file = -1; char *beep_count_env = NULL; - int i, color, beep_count = 0; + int i, beep_count = 0; off_t len = 0; char *buffer = NULL; @@ -118,15 +118,13 @@ int print_sandbox_log(char *sandbox_log) } sb_close(sandbox_log_file); - color = ((is_env_on(ENV_NOCOLOR)) ? 0 : 1); - - SB_EERROR(color, + SB_EERROR( "--------------------------- ACCESS VIOLATION SUMMARY ---------------------------", "\n"); - SB_EERROR(color, "LOG FILE = \"%s\"", "\n\n", sandbox_log); + SB_EERROR("LOG FILE", " \"%s\"\n\n", sandbox_log); fprintf(stderr, "%s", buffer); free(buffer); - SB_EERROR(color, + SB_EERROR( "--------------------------------------------------------------------------------", "\n"); |