From 29eac8e2a2beb29b0c99d482eefdb236a08ef827 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 22 Feb 2024 14:08:20 -0800 Subject: [PATCH] Fix regression in logger functions The recent release broke things so that the logger wasn't logging by default. This ensures that `__log_file` initializes in correct order --- libc/log/logfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/log/logfile.c b/libc/log/logfile.c index 7cc70c86a..6d0231dbf 100644 --- a/libc/log/logfile.c +++ b/libc/log/logfile.c @@ -21,6 +21,6 @@ FILE *__log_file; -__attribute__((__constructor__(60))) static void loginit(void) { +__attribute__((__constructor__(61))) static void loginit(void) { __log_file = stderr; }