aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_node_tables.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-12-11 19:37:51 +0100
committerSverker Eriksson <[email protected]>2015-12-11 19:37:51 +0100
commiteda21ee8a6b87a7ec03822e255d82827db1aee12 (patch)
treec4a0d61e6ff82d96fb4008d81b36f4ca0152044e /erts/emulator/beam/erl_node_tables.c
parent949de78331b9c4ecb9c628bb651cecb113790e2e (diff)
downloadotp-eda21ee8a6b87a7ec03822e255d82827db1aee12.tar.gz
otp-eda21ee8a6b87a7ec03822e255d82827db1aee12.tar.bz2
otp-eda21ee8a6b87a7ec03822e255d82827db1aee12.zip
erts: Fix correct node name for DTRACE
broken by 949de78331b9c4ecb9.
Diffstat (limited to 'erts/emulator/beam/erl_node_tables.c')
-rw-r--r--erts/emulator/beam/erl_node_tables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_node_tables.c b/erts/emulator/beam/erl_node_tables.c
index a7d0511bf9..707de39556 100644
--- a/erts/emulator/beam/erl_node_tables.c
+++ b/erts/emulator/beam/erl_node_tables.c
@@ -752,6 +752,10 @@ erts_set_this_node(Eterm sysname, Uint creation)
erts_this_dist_entry = erts_this_node->dist_entry;
erts_refc_inc(&erts_this_dist_entry->refc, 2);
+
+ erts_this_node_sysname = erts_this_node_sysname_BUFFER;
+ erts_snprintf(erts_this_node_sysname, sizeof(erts_this_node_sysname_BUFFER),
+ "%T", sysname);
}
Uint