Skip to content

Commit

Permalink
Add another very simple log destination-- fprintf to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
cgull committed Mar 15, 2024
1 parent cf07739 commit 8a277e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ static void log_line(const char *line) {
static void log_line(const char *line) {
os_log_fault(OS_LOG_DEFAULT, "%s", line);
}
#elif LOG_HANDLER_STDERR
static void log_line(const char *line) {
fprintf(stderr, "%s\n", line);
}
#endif

static void default_die_handler(const char *msg) {
Expand Down

0 comments on commit 8a277e3

Please sign in to comment.