diff options
| author | 2018-04-03 10:31:54 +0800 | |
|---|---|---|
| committer | 2018-04-03 10:31:54 +0800 | |
| commit | bb9093ed57d55d0c213edb73e2ba0f6276e833dc (patch) | |
| tree | 044fd88fa563a796e4e1477590191978b68544ba /src/common/logging/backend.cpp | |
| parent | Merge pull request #262 from daniellimws/fmtlib-macros (diff) | |
| download | yuzu-bb9093ed57d55d0c213edb73e2ba0f6276e833dc.tar.gz yuzu-bb9093ed57d55d0c213edb73e2ba0f6276e833dc.tar.xz yuzu-bb9093ed57d55d0c213edb73e2ba0f6276e833dc.zip | |
logging: Change FmtLogMessage to use variadic template instead of FMT_VARIADIC
Due to premature merging of #262 I think the build may be failing right now. Should merge this ASAP to fix it.
Diffstat (limited to 'src/common/logging/backend.cpp')
| -rw-r--r-- | src/common/logging/backend.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 3db654913..625730c6a 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -146,12 +146,12 @@ void LogMessage(Class log_class, Level log_level, const char* filename, unsigned | |||
| 146 | PrintColoredMessage(entry); | 146 | PrintColoredMessage(entry); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void FmtLogMessage(Class log_class, Level log_level, const char* filename, unsigned int line_num, | 149 | void LogMessage(Class log_class, Level log_level, const char* filename, unsigned int line_num, |
| 150 | const char* function, const char* format, const fmt::ArgList& args) { | 150 | const char* function, const char* format, const fmt::format_args& args) { |
| 151 | if (filter && !filter->CheckMessage(log_class, log_level)) | 151 | if (filter && !filter->CheckMessage(log_class, log_level)) |
| 152 | return; | 152 | return; |
| 153 | Entry entry = | 153 | Entry entry = |
| 154 | CreateEntry(log_class, log_level, filename, line_num, function, fmt::format(format, args)); | 154 | CreateEntry(log_class, log_level, filename, line_num, function, fmt::vformat(format, args)); |
| 155 | 155 | ||
| 156 | PrintColoredMessage(entry); | 156 | PrintColoredMessage(entry); |
| 157 | } | 157 | } |