From 403b34d38e4ff6e388b8511071f68e8052056728 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 17 Feb 2021 15:48:55 +0100 Subject: [PATCH] LibC: Convert dbgprintf() => dbgln() in SSP handler --- Userland/Libraries/LibC/ssp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibC/ssp.cpp b/Userland/Libraries/LibC/ssp.cpp index c2715d6ba0..6e3dc46f17 100644 --- a/Userland/Libraries/LibC/ssp.cpp +++ b/Userland/Libraries/LibC/ssp.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include @@ -41,9 +42,9 @@ u32 __stack_chk_guard = (u32)0xc6c7c8c9; [[noreturn]] void __stack_chk_fail() { - dbgprintf("Error: USERSPACE(%d) Stack protector failure, stack smashing detected!\n", getpid()); + dbgln("Error: USERSPACE({}) Stack protector failure, stack smashing detected!", getpid()); if (__stdio_is_initialized) - fprintf(stderr, "Error: Stack protector failure, stack smashing detected!\n"); + warnln("Error: Stack protector failure, stack smashing detected!"); abort(); }