diff options
| author | 2018-07-02 21:39:22 -0400 | |
|---|---|---|
| committer | 2018-07-02 21:45:48 -0400 | |
| commit | 76b475faf774a7a357bdc707e556c75f7975bc45 (patch) | |
| tree | c1acee7b309a3ee7b405dece76a3389b700f6052 /src/common | |
| parent | Add configurable logging backends (diff) | |
| download | yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar.gz yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.tar.xz yuzu-76b475faf774a7a357bdc707e556c75f7975bc45.zip | |
Fix build and address review feedback
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/logging/filter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/logging/filter.cpp b/src/common/logging/filter.cpp index 733247b51..4e783a577 100644 --- a/src/common/logging/filter.cpp +++ b/src/common/logging/filter.cpp | |||
| @@ -65,14 +65,14 @@ bool Filter::ParseFilterRule(const std::string::const_iterator begin, | |||
| 65 | const std::string::const_iterator end) { | 65 | const std::string::const_iterator end) { |
| 66 | auto level_separator = std::find(begin, end, ':'); | 66 | auto level_separator = std::find(begin, end, ':'); |
| 67 | if (level_separator == end) { | 67 | if (level_separator == end) { |
| 68 | LOG_ERROR(Log, "Invalid log filter. Must specify a log level after `:`: %s", | 68 | LOG_ERROR(Log, "Invalid log filter. Must specify a log level after `:`: {}", |
| 69 | std::string(begin, end).c_str()); | 69 | std::string(begin, end)); |
| 70 | return false; | 70 | return false; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | const Level level = GetLevelByName(level_separator + 1, end); | 73 | const Level level = GetLevelByName(level_separator + 1, end); |
| 74 | if (level == Level::Count) { | 74 | if (level == Level::Count) { |
| 75 | LOG_ERROR(Log, "Unknown log level in filter: %s", std::string(begin, end).c_str()); | 75 | LOG_ERROR(Log, "Unknown log level in filter: {}", std::string(begin, end)); |
| 76 | return false; | 76 | return false; |
| 77 | } | 77 | } |
| 78 | 78 | ||
| @@ -83,7 +83,7 @@ bool Filter::ParseFilterRule(const std::string::const_iterator begin, | |||
| 83 | 83 | ||
| 84 | const Class log_class = GetClassByName(begin, level_separator); | 84 | const Class log_class = GetClassByName(begin, level_separator); |
| 85 | if (log_class == Class::Count) { | 85 | if (log_class == Class::Count) { |
| 86 | LOG_ERROR(Log, "Unknown log class in filter: %s", std::string(begin, end).c_str()); | 86 | LOG_ERROR(Log, "Unknown log class in filter: {}", std::string(begin, end)); |
| 87 | return false; | 87 | return false; |
| 88 | } | 88 | } |
| 89 | 89 | ||