Fix printf bug

This commit is contained in:
Doyle Thai 2018-02-03 13:26:00 +11:00
parent 21ff2f43dc
commit 6a02e38706

View File

@ -24,6 +24,9 @@
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
// 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__) #define LOG_HEADER() LogHeader( __func__)
FILE_SCOPE i32 globalIndent; FILE_SCOPE i32 globalIndent;
FILE_SCOPE bool globalNewLine; FILE_SCOPE bool globalNewLine;
@ -2333,9 +2336,9 @@ void DqnMemSet_Test()
Log("Average Timings"); Log("Average Timings");
globalIndent++; globalIndent++;
#if defined(DQN_WIN32_IMPLEMENTATION) #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 #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 #endif
globalIndent--; globalIndent--;
@ -2603,7 +2606,6 @@ int main(void)
globalIndent = 1; globalIndent = 1;
globalNewLine = true; globalNewLine = true;
DqnMemStack_Test();
DqnString_Test(); DqnString_Test();
DqnChar_Test(); DqnChar_Test();
DqnRnd_Test(); DqnRnd_Test();