diff options
author | Lukas Larsson <[email protected]> | 2014-03-25 09:44:16 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-03-25 09:44:16 +0100 |
commit | 1eee4ded1b435d3728fc75ad384626c80025bb3b (patch) | |
tree | 3258699aad3a77eb06f416b6187473848131c219 /erts/emulator/beam/copy.c | |
parent | c7df173fbd45965d78c67dea617ae7b9bbe23089 (diff) | |
parent | effb1c0a593e71664dec5b06da72518e74254c1b (diff) | |
download | otp-1eee4ded1b435d3728fc75ad384626c80025bb3b.tar.gz otp-1eee4ded1b435d3728fc75ad384626c80025bb3b.tar.bz2 otp-1eee4ded1b435d3728fc75ad384626c80025bb3b.zip |
Merge branch 'paulgray/dtrace_snprintf_fix/OTP-11816'
* paulgray/dtrace_snprintf_fix/OTP-11816:
Pass full strings to DTrace probes
Diffstat (limited to 'erts/emulator/beam/copy.c')
-rw-r--r-- | erts/emulator/beam/copy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/copy.c b/erts/emulator/beam/copy.c index 3a987e213b..50548850eb 100644 --- a/erts/emulator/beam/copy.c +++ b/erts/emulator/beam/copy.c @@ -48,7 +48,8 @@ copy_object(Eterm obj, Process* to) if (DTRACE_ENABLED(copy_object)) { DTRACE_CHARBUF(proc_name, 64); - erts_snprintf(proc_name, sizeof(proc_name), "%T", to->common.id); + erts_snprintf(proc_name, sizeof(DTRACE_CHARBUF_NAME(proc_name)), + "%T", to->common.id); DTRACE2(copy_object, proc_name, size); } #endif |