Skip to content

Commit

Permalink
Fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
akashlevy committed Jan 23, 2025
1 parent 33653c8 commit 2e89aa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
if (!cond) {
log("ERROR: Assert `%s' failed in %s:%d.\n", expr, file, line);
log_flush();
printf("ERROR: Assert `%s' failed in %s:%d.\n", expr, file, line);
raise(SIGABRT);
}
}
#ifndef NDEBUG
Expand Down

0 comments on commit 2e89aa5

Please sign in to comment.