summaryrefslogtreecommitdiff
path: root/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
commite5a356a891571be202d9d9ccd8e73ba54cf65581 (patch)
tree69ad25d174ffa39a591e33543a727ecef04833aa /include/__debug
parent63e70b67eb93f78eae8122ce31443d394dcbd196 (diff)
downloadlibcxx-e5a356a891571be202d9d9ccd8e73ba54cf65581.tar.gz
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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@231767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/__debug')
-rw-r--r--include/__debug2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/__debug b/include/__debug
index c1512246b..a21f9a898 100644
--- a/include/__debug
+++ b/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