diff options
| author | Léo Lam <leo@leolam.fr> | 2020-12-05 23:58:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-05 23:58:04 +0100 |
| commit | c8cb330df04431b8414efaffaee01cf984572d33 (patch) | |
| tree | a7006b0fa6d0f63782455f6c30b7963722737c1a /Source/UnitTests/Core/PowerPC | |
| parent | d8b9a040edd52a2d577a09deb44aee42705c5c40 (diff) | |
| parent | 585899dba39fdad6dd5875a96007d5b4f1bb41f7 (diff) | |
Merge pull request #9310 from leoetlino/compile-time-errors-format
Turn format string issues into compile-time errors
Diffstat (limited to 'Source/UnitTests/Core/PowerPC')
| -rw-r--r-- | Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp | 3 | ||||
| -rw-r--r-- | Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp index 41ca31b273..aa4324968d 100644 --- a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp +++ b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp @@ -14,6 +14,7 @@ #include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h" #include "Core/PowerPC/Jit64Common/Jit64PowerPCState.h" +#include <fmt/format.h> #include <gtest/gtest.h> namespace @@ -109,7 +110,7 @@ TEST(Jit64, ConvertDoubleToSingle) const u32 expected = ConvertToSingle(input); const u32 actual = routines.wrapped_cdts(input); - printf("%016llx -> %08x == %08x\n", input, actual, expected); + fmt::print("{:016x} -> {:08x} == {:08x}\n", input, actual, expected); EXPECT_EQ(expected, actual); } diff --git a/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp b/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp index 18e0ee8044..4dff5ff723 100644 --- a/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp +++ b/Source/UnitTests/Core/PowerPC/Jit64Common/Frsqrte.cpp @@ -14,6 +14,7 @@ #include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h" #include "Core/PowerPC/Jit64Common/Jit64PowerPCState.h" +#include <fmt/format.h> #include <gtest/gtest.h> namespace @@ -98,7 +99,7 @@ TEST(Jit64, Frsqrte) u64 actual = routines.wrapped_frsqrte(ivalue, fpscr); - printf("%016llx -> %016llx == %016llx\n", ivalue, actual, expected); + fmt::print("{:016x} -> {:016x} == {:016x}\n", ivalue, actual, expected); EXPECT_EQ(expected, actual); } |
