diff options
Diffstat (limited to 'core/logging.cpp')
-rw-r--r-- | core/logging.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/logging.cpp b/core/logging.cpp index 34a95e5a..8e0116ea 100644 --- a/core/logging.cpp +++ b/core/logging.cpp @@ -25,13 +25,13 @@ void al_print(LogLevel level, FILE *logfile, const char *fmt, ...) * that includes the null terminator, which we want to exclude from the * span. */ - auto prefix = al::as_span("[ALSOFT] (--) ").first<14>(); + auto prefix = al::span{"[ALSOFT] (--) "}.first<14>(); switch(level) { case LogLevel::Disable: break; - case LogLevel::Error: prefix = al::as_span("[ALSOFT] (EE) ").first<14>(); break; - case LogLevel::Warning: prefix = al::as_span("[ALSOFT] (WW) ").first<14>(); break; - case LogLevel::Trace: prefix = al::as_span("[ALSOFT] (II) ").first<14>(); break; + case LogLevel::Error: prefix = al::span{"[ALSOFT] (EE) "}.first<14>(); break; + case LogLevel::Warning: prefix = al::span{"[ALSOFT] (WW) "}.first<14>(); break; + case LogLevel::Trace: prefix = al::span{"[ALSOFT] (II) "}.first<14>(); break; } al::vector<char> dynmsg; |