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:
logf(
la.level,
"%s%ALLOCATOR(mode=.Query_Features)",
"%s%sALLOCATOR(mode=.Query_Features)",
la.prefix, padding,
location = location,
)
case .Query_Info:
logf(
la.level,
"%s%ALLOCATOR(mode=.Query_Info)",
"%s%sALLOCATOR(mode=.Query_Info)",
la.prefix, padding,
location = location,
)
@@ -104,8 +104,8 @@ log_allocator_proc :: proc(allocator_data: rawptr, mode: runtime.Allocator_Mode,
if err != nil {
logf(
la.level,
"%s%ALLOCATOR ERROR=%v",
la.prefix, padding, error,
"%s%sALLOCATOR ERROR=%v",
la.prefix, padding, err,
location = location,
)
}