added inttypes

This commit is contained in:
Jack Andersen 2015-08-31 09:45:52 -10:00
parent 828db515ba
commit 317e75c22e
1 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
#include <thread>
#include <unordered_map>
#include <stdio.h>
#include <inttypes.h>
#include "LogVisor/LogVisor.hpp"
/* ANSI sequences */
@ -107,7 +108,7 @@ struct ConsoleLogger : public ILogger
fprintf(stderr, "%5.4f ", tmd);
uint64_t fi = FrameIndex.load();
if (fi)
fprintf(stderr, "(%llu) ", fi);
fprintf(stderr, "(%" PRIu64 ") ", fi);
switch (severity)
{
case Info:
@ -306,7 +307,7 @@ struct FileLogger : public ILogger
fprintf(fp, " %5.4f", tmd);
uint_fast64_t fIdx = FrameIndex.load();
if (fIdx)
fprintf(fp, " (%llu)", fIdx);
fprintf(fp, " (%" PRIu64 ")", fIdx);
fprintf(fp, "] ");
}