diff options
| author | 2018-04-02 22:48:17 -0400 | |
|---|---|---|
| committer | 2018-04-02 22:48:17 -0400 | |
| commit | b87a588c376413b279c36a895f959bb3ec0e0d4e (patch) | |
| tree | 044fd88fa563a796e4e1477590191978b68544ba /src/common/logging/backend.cpp | |
| parent | Merge pull request #262 from daniellimws/fmtlib-macros (diff) | |
| parent | logging: Change FmtLogMessage to use variadic template instead of FMT_VARIADIC (diff) | |
| download | yuzu-b87a588c376413b279c36a895f959bb3ec0e0d4e.tar.gz yuzu-b87a588c376413b279c36a895f959bb3ec0e0d4e.tar.xz yuzu-b87a588c376413b279c36a895f959bb3ec0e0d4e.zip | |
Merge pull request #306 from daniellimws/new-fmt-macros
logging: Use variadic template instead of FMT_VARIADIC
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 | } |