From c19393c758e0e7d24fa39ef00c8a6a7beeb731ad Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 10 Mar 2015 07:57:43 +0000 Subject: 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 --- libcxx/include/__debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcxx/include/__debug') 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 # include # 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 -- cgit v1.2.3