aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-05-21 13:52:47 +0200
committerSverker Eriksson <[email protected]>2018-06-04 16:28:47 +0200
commit9611459cddf27fd648aad4d799ca1fc4cf92f351 (patch)
tree75805eb7ffaa30f6423c28d76d78e0ec3ae03f88 /erts/emulator/sys
parent1c8365272a55301609dc8c46aa49fa0ac048506e (diff)
downloadotp-9611459cddf27fd648aad4d799ca1fc4cf92f351.tar.gz
otp-9611459cddf27fd648aad4d799ca1fc4cf92f351.tar.bz2
otp-9611459cddf27fd648aad4d799ca1fc4cf92f351.zip
erts: Refactor usage of am_atom_put to ERTS_MAKE_AM
and let compiler determine string lengths. These were actually wrong in erl_db.c: count_trap\0 replace_tra select_tra
Diffstat (limited to 'erts/emulator/sys')
-rw-r--r--erts/emulator/sys/common/erl_mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/sys/common/erl_mmap.c b/erts/emulator/sys/common/erl_mmap.c
index 5dadd8a5a6..145503bea7 100644
--- a/erts/emulator/sys/common/erl_mmap.c
+++ b/erts/emulator/sys/common/erl_mmap.c
@@ -2514,8 +2514,8 @@ Eterm erts_mmap_debug_info(Process* p)
sizeof(values)/sizeof(*values),
tags, values);
- sa_list = TUPLE2(hp, am_atom_put("sa_free_segs",12), sa_list); hp+=3;
- sua_list = TUPLE2(hp, am_atom_put("sua_free_segs",13), sua_list); hp+=3;
+ sa_list = TUPLE2(hp, ERTS_MAKE_AM("sa_free_segs"), sa_list); hp+=3;
+ sua_list = TUPLE2(hp, ERTS_MAKE_AM("sua_free_segs"), sua_list); hp+=3;
list = CONS(hp, sua_list, list); hp+=2;
list = CONS(hp, sa_list, list); hp+=2;