summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__debug
diff options
context:
space:
mode:
authorEd Schouten <ed@80386.nl>2015-03-10 07:57:43 +0000
committerEd Schouten <ed@80386.nl>2015-03-10 07:57:43 +0000
commitc19393c758e0e7d24fa39ef00c8a6a7beeb731ad (patch)
tree5f5908816688a34e8e7f4414eb9b795f3b19040f /libcxx/include/__debug
parent1bdbf48fff573653ba8ca612359af5af777e1fc4 (diff)
downloadbcm5719-llvm-c19393c758e0e7d24fa39ef00c8a6a7beeb731ad.tar.gz
bcm5719-llvm-c19393c758e0e7d24fa39ef00c8a6a7beeb731ad.zip
Print log/error messages on stderr, not stdout
There are a couple of places where libc++ prints log/error messages to stdout on its own. This may of course interfere with the output generated with applications. Log/error messages should be directed to stderr instead. Differential Revision: http://reviews.llvm.org/D8135 Reviewed by: marshall llvm-svn: 231767
Diffstat (limited to 'libcxx/include/__debug')
-rw-r--r--libcxx/include/__debug2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/__debug b/libcxx/include/__debug
index c1512246bfc..a21f9a89884 100644
--- a/libcxx/include/__debug
+++ b/libcxx/include/__debug
@@ -22,7 +22,7 @@
# include <cstdio>
# include <cstddef>
# ifndef _LIBCPP_ASSERT
-# define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : (_VSTD::printf("%s\n", m), _VSTD::abort()))
+# define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : (_VSTD::fprintf(stderr, "%s\n", m), _VSTD::abort()))
# endif
#endif
OpenPOWER on IntegriCloud