aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2011-03-25 15:00:53 +0100
committerPatrik Nyblom <[email protected]>2011-03-25 15:00:59 +0100
commitf0e2f0b91ac4d45a64ddac511e0eba9b6ce01e92 (patch)
tree2389889cc26bd53ad2670fd606fbffd2b0e167b2 /erts/emulator/beam/erl_bif_info.c
parent4d8c2a57bbaebacff9e22cfa144d009789f140c6 (diff)
parente88b203c8b8e725aa083a5018e92395a85c9dac3 (diff)
downloadotp-f0e2f0b91ac4d45a64ddac511e0eba9b6ce01e92.tar.gz
otp-f0e2f0b91ac4d45a64ddac511e0eba9b6ce01e92.tar.bz2
otp-f0e2f0b91ac4d45a64ddac511e0eba9b6ce01e92.zip
Merge branch 'pan/valgrind_xml_log' into dev
* pan/valgrind_xml_log: Make xml valgrind messages end up in xml log OTP-9079
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rw-r--r--erts/emulator/beam/erl_bif_info.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index e06fbde9fb..71206c48b2 100644
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -1723,8 +1723,14 @@ info_1_tuple(Process* BIF_P, /* Pointer to current process. */
} else if (is_list(*tp)) {
#if defined(PURIFY)
#define ERTS_ERROR_CHECKER_PRINTF purify_printf
+#define ERTS_ERROR_CHECKER_PRINTF_XML purify_printf
#elif defined(VALGRIND)
#define ERTS_ERROR_CHECKER_PRINTF VALGRIND_PRINTF
+# ifndef HAVE_VALGRIND_PRINTF_XML
+# define ERTS_ERROR_CHECKER_PRINTF_XML VALGRIND_PRINTF
+# else
+# define ERTS_ERROR_CHECKER_PRINTF_XML VALGRIND_PRINTF_XML
+# endif
#endif
int buf_size = 8*1024; /* Try with 8KB first */
char *buf = erts_alloc(ERTS_ALC_T_TMP, buf_size);
@@ -1741,8 +1747,8 @@ info_1_tuple(Process* BIF_P, /* Pointer to current process. */
}
buf[buf_size - 1 - r] = '\0';
if (check_if_xml()) {
- ERTS_ERROR_CHECKER_PRINTF("<erlang_info_log>"
- "%s</erlang_info_log>\n", buf);
+ ERTS_ERROR_CHECKER_PRINTF_XML("<erlang_info_log>"
+ "%s</erlang_info_log>\n", buf);
} else {
ERTS_ERROR_CHECKER_PRINTF("%s\n", buf);
}