mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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
16 lines
335 B
C
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;
|
|
}
|