aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2005-07-22 08:13:25 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-07-22 08:13:25 +0000
commit6a368e459c676c5f810cf4f8c8c4bc0b3a893053 (patch)
tree63e10fcf2be1c71b6db35f71c3de4748a34fbd71
parentRelease sandbox-1.2.11. (diff)
downloadsandbox-6a368e459c676c5f810cf4f8c8c4bc0b3a893053.tar.gz
sandbox-6a368e459c676c5f810cf4f8c8c4bc0b3a893053.tar.bz2
sandbox-6a368e459c676c5f810cf4f8c8c4bc0b3a893053.zip
Print all logging to stderr, bug #90343, comment #15
URL: http://bugs.gentoo.org/90343 Signed-off-by: Zac Medico <zmedico@gentoo.org> Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
-rw-r--r--ChangeLog4
-rw-r--r--sandbox.h8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1935a29..39bb4a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
# $Header$
+ 22 July 2005; Martin Schlemmer <azarah@gentoo.org> sandbox.h:
+
+ Print all logging to stderr, bug #90343, comment #15, by Zac Medico.
+
* sandbox-1.2.11 (2005/07/14)
14 July 2005; Martin Schlemmer <azarah@gentoo.org> getcwd.c:
diff --git a/sandbox.h b/sandbox.h
index daf36a5..f98f888 100644
--- a/sandbox.h
+++ b/sandbox.h
@@ -59,9 +59,9 @@
do { \
int old_errno = errno; \
if (_color) \
- printf("\033[32;01m" _hilight "\033[0m" _args); \
+ fprintf(stderr, "\033[32;01m" _hilight "\033[0m" _args); \
else \
- printf(_hilight _args); \
+ fprintf(stderr, _hilight _args); \
errno = old_errno; \
} while (0)
@@ -69,9 +69,9 @@
do { \
int old_errno = errno; \
if (_color) \
- printf("\033[33;01m" _hilight "\033[0m" _args); \
+ fprintf(stderr, "\033[33;01m" _hilight "\033[0m" _args); \
else \
- printf(_hilight _args); \
+ fprintf(stderr, _hilight _args); \
errno = old_errno; \
} while (0)