From 90bb8ed33e3bf9aa10d2788192acc34b08bd2518 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Thu, 10 Oct 2024 21:17:02 -0600 Subject: [PATCH] AK: Use process name on Windows for dbgln() --- AK/Format.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/Format.cpp b/AK/Format.cpp index 7aa01f8029f..8d6f14cbc8d 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -1204,6 +1204,11 @@ void vdbg(StringView fmtstr, TypeErasedFormatParams& params, bool newline) } # endif } +#else + auto process_name = process_name_for_logging(); + if (!process_name.is_empty()) { + builder.appendff("{}: ", process_name); + } #endif }