log allocator: fix the formatting for query info/features and errors

This commit is contained in:
Laytan Laats
2023-12-16 00:55:59 +01:00
parent ea709451e8
commit cf8c9a6be4
+4 -4
View File
@@ -83,14 +83,14 @@ log_allocator_proc :: proc(allocator_data: rawptr, mode: runtime.Allocator_Mode,
case .Query_Features: case .Query_Features:
logf( logf(
la.level, la.level,
"%s%ALLOCATOR(mode=.Query_Features)", "%s%sALLOCATOR(mode=.Query_Features)",
la.prefix, padding, la.prefix, padding,
location = location, location = location,
) )
case .Query_Info: case .Query_Info:
logf( logf(
la.level, la.level,
"%s%ALLOCATOR(mode=.Query_Info)", "%s%sALLOCATOR(mode=.Query_Info)",
la.prefix, padding, la.prefix, padding,
location = location, location = location,
) )
@@ -104,8 +104,8 @@ log_allocator_proc :: proc(allocator_data: rawptr, mode: runtime.Allocator_Mode,
if err != nil { if err != nil {
logf( logf(
la.level, la.level,
"%s%ALLOCATOR ERROR=%v", "%s%sALLOCATOR ERROR=%v",
la.prefix, padding, error, la.prefix, padding, err,
location = location, location = location,
) )
} }