From 730f9ee0b38dc50b57f7404ae12bc335f9297613 Mon Sep 17 00:00:00 2001 From: Mikkel Hjortshoej Date: Thu, 2 Jul 2020 15:31:40 +0200 Subject: [PATCH] Fix misplaced line number (was wrongly formatted and before procedure) --- core/log/file_console_logger.odin | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/log/file_console_logger.odin b/core/log/file_console_logger.odin index 1c951a8ff..50632a64d 100644 --- a/core/log/file_console_logger.odin +++ b/core/log/file_console_logger.odin @@ -127,12 +127,6 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca if Location_File_Opts & opts != nil { fmt.sbprint(buf, file); } - if .Line in opts { - if (Location_File_Opts | {.Procedure}) & opts != nil { - fmt.sbprint(buf, ":"); - } - fmt.sbprint(buf, location.line); - } if .Procedure in opts { if Location_File_Opts & opts != nil { @@ -141,6 +135,12 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca fmt.sbprintf(buf, "%s()", location.procedure); } + if .Line in opts { + if (Location_File_Opts | {.Procedure}) & opts != nil { + fmt.sbprint(buf, ":"); + } + fmt.sbprint(buf, location.line); + } fmt.sbprint(buf, "] "); }