aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/ose
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-12-11 17:17:56 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:02 +0100
commit8080aa615ad9d82bfb7e2d9b92d45b9c81a95929 (patch)
tree3dfcc3f3a93245c27e9931415cdc44d292be7749 /erts/emulator/sys/ose
parent6552935ee7ef4f267d71cce90b1c848cb9800f32 (diff)
downloadotp-8080aa615ad9d82bfb7e2d9b92d45b9c81a95929.tar.gz
otp-8080aa615ad9d82bfb7e2d9b92d45b9c81a95929.tar.bz2
otp-8080aa615ad9d82bfb7e2d9b92d45b9c81a95929.zip
ose: Update erl_assert_error after R16B03 api change
Diffstat (limited to 'erts/emulator/sys/ose')
-rw-r--r--erts/emulator/sys/ose/sys.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/erts/emulator/sys/ose/sys.c b/erts/emulator/sys/ose/sys.c
index a62d7c150b..b786d19ecf 100644
--- a/erts/emulator/sys/ose/sys.c
+++ b/erts/emulator/sys/ose/sys.c
@@ -1647,14 +1647,16 @@ 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, func, line, expr);
fflush(stderr);
- ramlog_printf("%d: Assertion failed: %s in %s, line %d\n",
- current_process(), expr, file, line);
+ ramlog_printf("%s:%d:%s() Assertion failed: %s\n",
+ file, func, line, expr);
+
abort();
}