From 2a6130b7e1fa7c748eaaaf9a8c3e02d062f6070e Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 19 Jun 2020 15:24:42 +0100 Subject: [PATCH] Reorder `log.do_location_header` order --- core/log/file_console_logger.odin | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/log/file_console_logger.odin b/core/log/file_console_logger.odin index a29916bee..1c951a8ff 100644 --- a/core/log/file_console_logger.odin +++ b/core/log/file_console_logger.odin @@ -128,13 +128,15 @@ do_location_header :: proc(opts: Options, buf: ^strings.Builder, location := #ca fmt.sbprint(buf, file); } if .Line in opts { - if Location_File_Opts & opts != nil || .Procedure in opts do fmt.sbprint(buf, ":"); + 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 { - fmt.sbprint(buf, "."); + fmt.sbprint(buf, ":"); } fmt.sbprintf(buf, "%s()", location.procedure); }