diff options
author | Lioncash <mathew1800@gmail.com> | 2018-04-27 01:17:35 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-04-27 02:09:58 +0200 |
commit | 3cfe77ae758d02a969831180fa3100d269237343 (patch) | |
tree | 8cfdf870baf70a5d260a0840e25f1a42a9aed362 /src/common/string_util.cpp | |
parent | Merge pull request #402 from lioncash/core (diff) | |
download | yuzu-3cfe77ae758d02a969831180fa3100d269237343.tar yuzu-3cfe77ae758d02a969831180fa3100d269237343.tar.gz yuzu-3cfe77ae758d02a969831180fa3100d269237343.tar.bz2 yuzu-3cfe77ae758d02a969831180fa3100d269237343.tar.lz yuzu-3cfe77ae758d02a969831180fa3100d269237343.tar.xz yuzu-3cfe77ae758d02a969831180fa3100d269237343.tar.zst yuzu-3cfe77ae758d02a969831180fa3100d269237343.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/string_util.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 124a8937f..96c52e3ba 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -107,7 +107,7 @@ std::string StringFromFormat(const char* format, ...) { #else va_start(args, format); if (vasprintf(&buf, format, args) < 0) - LOG_ERROR(Common, "Unable to allocate memory for string"); + NGLOG_ERROR(Common, "Unable to allocate memory for string"); va_end(args); std::string temp = buf; @@ -347,7 +347,7 @@ static std::string CodeToUTF8(const char* fromcode, const std::basic_string<T>& iconv_t const conv_desc = iconv_open("UTF-8", fromcode); if ((iconv_t)(-1) == conv_desc) { - LOG_ERROR(Common, "Iconv initialization failure [%s]: %s", fromcode, strerror(errno)); + NGLOG_ERROR(Common, "Iconv initialization failure [{}]: {}", fromcode, strerror(errno)); iconv_close(conv_desc); return {}; } @@ -376,7 +376,7 @@ static std::string CodeToUTF8(const char* fromcode, const std::basic_string<T>& ++src_buffer; } } else { - LOG_ERROR(Common, "iconv failure [%s]: %s", fromcode, strerror(errno)); + NGLOG_ERROR(Common, "iconv failure [{}]: {}", fromcode, strerror(errno)); break; } } @@ -395,7 +395,7 @@ std::u16string UTF8ToUTF16(const std::string& input) { iconv_t const conv_desc = iconv_open("UTF-16LE", "UTF-8"); if ((iconv_t)(-1) == conv_desc) { - LOG_ERROR(Common, "Iconv initialization failure [UTF-8]: %s", strerror(errno)); + NGLOG_ERROR(Common, "Iconv initialization failure [UTF-8]: {}", strerror(errno)); iconv_close(conv_desc); return {}; } @@ -424,7 +424,7 @@ std::u16string UTF8ToUTF16(const std::string& input) { ++src_buffer; } } else { - LOG_ERROR(Common, "iconv failure [UTF-8]: %s", strerror(errno)); + NGLOG_ERROR(Common, "iconv failure [UTF-8]: {}", strerror(errno)); break; } } |