From 2a1a619eed67322399e943fac923701340bfc8cc Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sun, 27 Mar 2022 19:54:41 +0430 Subject: [PATCH] AK: Display SourceLocation function name in color It's much easier to spot the function name (which is what you often expect) like this. --- AK/SourceLocation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/SourceLocation.h b/AK/SourceLocation.h index 1fabd378693..1a90897b650 100644 --- a/AK/SourceLocation.h +++ b/AK/SourceLocation.h @@ -45,7 +45,7 @@ template<> struct AK::Formatter : AK::Formatter { ErrorOr format(FormatBuilder& builder, AK::SourceLocation location) { - return AK::Formatter::format(builder, "[{} @ {}:{}]", location.function_name(), location.filename(), location.line_number()); + return AK::Formatter::format(builder, "[\x1b[34m{}\x1b[0m @ {}:{}]", location.function_name(), location.filename(), location.line_number()); } };