aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-11-07 20:18:05 +0100
committerSverker Eriksson <[email protected]>2017-11-07 20:18:05 +0100
commit370ef6e794c9199cb2b0a24d820203c4dc2b7a0e (patch)
treef06e8073d1ec387f6698f82ed7e4f303383aee2c /erts/emulator
parent6db8210068a55696cd5e444d40d3676737113d03 (diff)
parentef0d576a15fcf74fba6691b36b06c272a2d02ad3 (diff)
downloadotp-370ef6e794c9199cb2b0a24d820203c4dc2b7a0e.tar.gz
otp-370ef6e794c9199cb2b0a24d820203c4dc2b7a0e.tar.bz2
otp-370ef6e794c9199cb2b0a24d820203c4dc2b7a0e.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/hipe/hipe_debug.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_debug.c b/erts/emulator/hipe/hipe_debug.c
index 222a11db3d..cfe60b379e 100644
--- a/erts/emulator/hipe/hipe_debug.c
+++ b/erts/emulator/hipe/hipe_debug.c
@@ -135,7 +135,9 @@ static void print_heap(Eterm *pos, Eterm *end)
printf("From: 0x%0*lx to 0x%0*lx\n\r",
2*(int)sizeof(long), (unsigned long)pos,
2*(int)sizeof(long), (unsigned long)end);
- printf(" | H E A P |\r\n");
+ printf(" | %*s H E A P %*s |\r\n",
+ 2*(int)sizeof(long)-1, "",
+ 2*(int)sizeof(long)-1, "");
printf(" | %*s | %*s |\r\n",
2+2*(int)sizeof(long), "Address",
2+2*(int)sizeof(long), "Contents");
@@ -158,8 +160,10 @@ static void print_heap(Eterm *pos, Eterm *end)
++pos;
--ari;
}
- } else
+ } else {
+ fflush(stdout);
erts_printf("%.30T", val);
+ }
printf("\r\n");
}
printf(" |%s|%s|\r\n", dashes, dashes);