diff options
author | Björn Gustavsson <[email protected]> | 2017-12-04 11:30:54 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-12-04 11:30:54 +0100 |
commit | 2151b54d4d55291703ff95c4e7dfed23fc2b07c5 (patch) | |
tree | e6017c26fc3f44616d56055462b7daf37d3d2107 /erts/emulator/hipe/hipe_risc_stack.c | |
parent | 75d36f5ebf174e3863cc5ce4df6039335c6b46a2 (diff) | |
parent | fbb3d973d98d19a88d926c86dc2ce95ef4f175e8 (diff) | |
download | otp-2151b54d4d55291703ff95c4e7dfed23fc2b07c5.tar.gz otp-2151b54d4d55291703ff95c4e7dfed23fc2b07c5.tar.bz2 otp-2151b54d4d55291703ff95c4e7dfed23fc2b07c5.zip |
Merge branch 'maint'
* maint:
fix output formatting in several HiPE debug BIFs
Diffstat (limited to 'erts/emulator/hipe/hipe_risc_stack.c')
-rw-r--r-- | erts/emulator/hipe/hipe_risc_stack.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/erts/emulator/hipe/hipe_risc_stack.c b/erts/emulator/hipe/hipe_risc_stack.c index 4001bedeb6..bb93a918a2 100644 --- a/erts/emulator/hipe/hipe_risc_stack.c +++ b/erts/emulator/hipe/hipe_risc_stack.c @@ -47,8 +47,10 @@ static void print_slot(Eterm *sp, unsigned int live) printf(" | 0x%0*lx | 0x%0*lx | ", 2*(int)sizeof(long), (unsigned long)sp, 2*(int)sizeof(long), val); - if (live) + if (live) { + fflush(stdout); erts_printf("%.30T", val); + } printf("\r\n"); } @@ -68,7 +70,9 @@ void hipe_print_nstack(Process *p) [0 ... 2*sizeof(long)+3] = '-' }; - printf(" | NATIVE STACK |\r\n"); + printf(" | %*s NATIVE STACK %*s |\r\n", + 2*(int)sizeof(long)-5, "", + 2*(int)sizeof(long)-4, ""); printf(" |%s|%s|\r\n", dashes, dashes); printf(" | %*s | 0x%0*lx |\r\n", 2+2*(int)sizeof(long), "heap", |