Nicholas Nethercote 5dfe01a847 With the recent VG_(message) change,
VALGRIND_{PRINTF,PRINTF_BACKTRACE,INTERNAL_PRINTF} were no longer appending
newlines.  This meant that --trace-malloc=yes spewed everything onto a
single line, among other things.

Rather than adding the newline back in, I chose to offically change their
behaviour to not add the newlines, as this is more flexible (and the reason
for the underlying VG_(message) change).  I updated all the relevant places
I could find.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10694
2009-08-03 01:38:56 +00:00

16 lines
335 B
C

#include "valgrind.h"
#include <stdio.h>
int
main (int argc, char **argv)
{
int x = 0;
x += VALGRIND_PRINTF("Yo ");
x += VALGRIND_PRINTF("Yo ");
x += VALGRIND_PRINTF("Ma\n");
fprintf(stderr, "%d\n", x);
x = VALGRIND_PRINTF_BACKTRACE("Backtrace line one\nLine two:\n");
fprintf(stderr, "%d\n", x);
return 0;
}