diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2019-06-14 12:22:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-14 12:22:16 -0700 |
| commit | 9cf6ba13dfa04e2ef402eef19cd67435e6849d29 (patch) | |
| tree | b87080969dd47a01c3a7845d65ef2afdef90928d /Source/Core/Common/ArmCPUDetect.cpp | |
| parent | 59155b4d5ef891597294b22c1dab581d47c3ea0d (diff) | |
| parent | 5b92d5076a0be89945fa0fc722749dd5fbfcdf4c (diff) | |
Merge pull request #8177 from lioncash/fmt
Common: Use fmt where applicable
Diffstat (limited to 'Source/Core/Common/ArmCPUDetect.cpp')
| -rw-r--r-- | Source/Core/Common/ArmCPUDetect.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Common/ArmCPUDetect.cpp b/Source/Core/Common/ArmCPUDetect.cpp index 466a0a0741..7ad619581c 100644 --- a/Source/Core/Common/ArmCPUDetect.cpp +++ b/Source/Core/Common/ArmCPUDetect.cpp @@ -10,10 +10,11 @@ #include <sys/auxv.h> #include <unistd.h> +#include <fmt/format.h> + #include "Common/CPUDetect.h" #include "Common/CommonTypes.h" #include "Common/FileUtil.h" -#include "Common/StringUtil.h" const char procfile[] = "/proc/cpuinfo"; @@ -77,9 +78,9 @@ std::string CPUInfo::Summarize() { std::string sum; if (num_cores == 1) - sum = StringFromFormat("%s, %i core", cpu_string, num_cores); + sum = fmt::format("{}, 1 core", cpu_string); else - sum = StringFromFormat("%s, %i cores", cpu_string, num_cores); + sum = fmt::format("{}, {} cores", cpu_string, num_cores); if (bAES) sum += ", AES"; |
