From 6a02e38706c17fe0d907f5a552a5447538a8633b Mon Sep 17 00:00:00 2001 From: Doyle Thai Date: Sat, 3 Feb 2018 13:26:00 +1100 Subject: [PATCH] Fix printf bug --- dqn_unit_test.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dqn_unit_test.cpp b/dqn_unit_test.cpp index e86f1bb..e0f43c9 100644 --- a/dqn_unit_test.cpp +++ b/dqn_unit_test.cpp @@ -24,6 +24,9 @@ #include #include +// TODO(doyle): Replace DQN_ASSERT with a non-halting assert that can connect to +// some sort of testing framework to track successes and failures. + #define LOG_HEADER() LogHeader( __func__) FILE_SCOPE i32 globalIndent; FILE_SCOPE bool globalNewLine; @@ -2333,9 +2336,9 @@ void DqnMemSet_Test() Log("Average Timings"); globalIndent++; #if defined(DQN_WIN32_IMPLEMENTATION) - Log("DqnMem_Set: %f vs DqnMem_Set64: %f vs memset: %f\n", 1, false, avgTimings[0], avgTimings[1], avgTimings[2]); + Log("DqnMem_Set: %f vs DqnMem_Set64: %f vs memset: %f\n", avgTimings[0], avgTimings[1], avgTimings[2]); #else - Log("DqnMem_Set: %f vs memset: %f\n", 1, false, avgTimings[0], avgTimings[1]); + Log("DqnMem_Set: %f vs memset: %f\n", avgTimings[0], avgTimings[1]); #endif globalIndent--; @@ -2603,7 +2606,6 @@ int main(void) globalIndent = 1; globalNewLine = true; - DqnMemStack_Test(); DqnString_Test(); DqnChar_Test(); DqnRnd_Test();