diff options
author | Mikael Pettersson <[email protected]> | 2015-05-06 15:40:15 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-05-06 15:43:51 +0200 |
commit | 6f05fa95ad949298f5175fc3a25fea52a7a3788d (patch) | |
tree | 9e880b8a7bc6319c5d33968cf82c7773a5be9dea /erts/emulator/sys/unix | |
parent | 861145a503c77d8144033f38d288bdda31699edd (diff) | |
download | otp-6f05fa95ad949298f5175fc3a25fea52a7a3788d.tar.gz otp-6f05fa95ad949298f5175fc3a25fea52a7a3788d.tar.bz2 otp-6f05fa95ad949298f5175fc3a25fea52a7a3788d.zip |
erts: Increase buffer in erts_fp_check_init_error
The current size is too small for 64-bit machines,
causing messages to be truncated and making debugging
more difficult.
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r-- | erts/emulator/sys/unix/sys_float.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/sys_float.c b/erts/emulator/sys/unix/sys_float.c index 2ffa649767..c30ef7cce2 100644 --- a/erts/emulator/sys/unix/sys_float.c +++ b/erts/emulator/sys/unix/sys_float.c @@ -85,7 +85,7 @@ static void set_current_fp_exception(unsigned long pc) void erts_fp_check_init_error(volatile unsigned long *fpexnp) { - char buf[64]; + char buf[128]; snprintf(buf, sizeof buf, "ERTS_FP_CHECK_INIT at %p: detected unhandled FPE at %p\r\n", __builtin_return_address(0), (void*)*fpexnp); if (write(2, buf, strlen(buf)) <= 0) |