diff options
author | Sverker Eriksson <[email protected]> | 2013-09-04 14:56:49 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-09-30 17:45:45 +0200 |
commit | e0e17136506f9c8363b46a991012422980925dd1 (patch) | |
tree | 1e444d163e87e47839761116b7ecaf607cadd0b4 /erts/emulator/sys/unix | |
parent | 984f0e42665e9fa09467145976183bf88f8f3da8 (diff) | |
download | otp-e0e17136506f9c8363b46a991012422980925dd1.tar.gz otp-e0e17136506f9c8363b46a991012422980925dd1.tar.bz2 otp-e0e17136506f9c8363b46a991012422980925dd1.zip |
erts: Add __func__ to ERTS_ASSERT macro
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r-- | erts/emulator/sys/unix/sys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c index 47991756df..401b37b9d2 100644 --- a/erts/emulator/sys/unix/sys.c +++ b/erts/emulator/sys/unix/sys.c @@ -2640,11 +2640,11 @@ int fd; extern int erts_initialized; void -erl_assert_error(char* expr, char* file, int line) +erl_assert_error(const char* expr, const char* func, const char* file, int line) { fflush(stdout); - fprintf(stderr, "Assertion failed: %s in %s, line %d\n", - expr, file, line); + fprintf(stderr, "%s:%d:%s() Assertion failed: %s\n", + file, line, func, expr); fflush(stderr); #if !defined(ERTS_SMP) && 0 /* Writing a crashdump from a failed assertion when smp support |