diff options
author | Patrik Nyblom <[email protected]> | 2011-03-25 15:00:53 +0100 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2011-03-25 15:00:59 +0100 |
commit | f0e2f0b91ac4d45a64ddac511e0eba9b6ce01e92 (patch) | |
tree | 2389889cc26bd53ad2670fd606fbffd2b0e167b2 /erts/emulator/beam/dist.c | |
parent | 4d8c2a57bbaebacff9e22cfa144d009789f140c6 (diff) | |
parent | e88b203c8b8e725aa083a5018e92395a85c9dac3 (diff) | |
download | otp-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/dist.c')
-rw-r--r-- | erts/emulator/beam/dist.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c index 02910fad90..044fd045a6 100644 --- a/erts/emulator/beam/dist.c +++ b/erts/emulator/beam/dist.c @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 1996-2010. All Rights Reserved. + * Copyright Ericsson AB 1996-2011. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in @@ -864,11 +864,15 @@ erts_dsig_send_group_leader(ErtsDSigData *dsdp, Eterm leader, Eterm remote) #include <valgrind/valgrind.h> #include <valgrind/memcheck.h> +#ifndef HAVE_VALGRIND_PRINTF_XML +#define VALGRIND_PRINTF_XML VALGRIND_PRINTF +#endif + # define PURIFY_MSG(msg) \ do { \ char buf__[1]; size_t bufsz__ = sizeof(buf__); \ if (erts_sys_getenv("VALGRIND_LOG_XML", buf__, &bufsz__) >= 0) { \ - VALGRIND_PRINTF("<erlang_error_log>" \ + VALGRIND_PRINTF_XML("<erlang_error_log>" \ "%s, line %d: %s</erlang_error_log>\n", \ __FILE__, __LINE__, msg); \ } else { \ |