fix order of file vs function in logging function arguments

This commit is contained in:
Martin Fouilleul 2023-09-28 21:28:18 +02:00
parent c4a1ad52a0
commit d5bd7ea2bb
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ void oc_log_ext(oc_log_level level,
{
va_list ap;
va_start(ap, fmt);
platform_log_push(__logConfig.output, level, file, function, line, fmt, ap);
platform_log_push(__logConfig.output, level, function, file, line, fmt, ap);
va_end(ap);
}
}

View File

@ -356,8 +356,8 @@ void log_entry_ui(oc_debug_overlay* overlay, log_entry* entry)
oc_str8 loc = oc_str8_pushf(scratch.arena,
"%.*s() in %.*s:%i:",
oc_str8_ip(entry->file),
oc_str8_ip(entry->function),
oc_str8_ip(entry->file),
entry->line);
oc_ui_label_str8(loc);
}