Skip to content

Commit

Permalink
ose: Update erl_assert_error after R16B03 api change
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Feb 24, 2014
1 parent 6552935 commit 8080aa6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions erts/emulator/sys/ose/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 8080aa6

Please sign in to comment.