mirror of https://github.com/AxioDL/logvisor.git
added inttypes
This commit is contained in:
parent
828db515ba
commit
317e75c22e
|
@ -10,6 +10,7 @@
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <inttypes.h>
|
||||||
#include "LogVisor/LogVisor.hpp"
|
#include "LogVisor/LogVisor.hpp"
|
||||||
|
|
||||||
/* ANSI sequences */
|
/* ANSI sequences */
|
||||||
|
@ -107,7 +108,7 @@ struct ConsoleLogger : public ILogger
|
||||||
fprintf(stderr, "%5.4f ", tmd);
|
fprintf(stderr, "%5.4f ", tmd);
|
||||||
uint64_t fi = FrameIndex.load();
|
uint64_t fi = FrameIndex.load();
|
||||||
if (fi)
|
if (fi)
|
||||||
fprintf(stderr, "(%llu) ", fi);
|
fprintf(stderr, "(%" PRIu64 ") ", fi);
|
||||||
switch (severity)
|
switch (severity)
|
||||||
{
|
{
|
||||||
case Info:
|
case Info:
|
||||||
|
@ -306,7 +307,7 @@ struct FileLogger : public ILogger
|
||||||
fprintf(fp, " %5.4f", tmd);
|
fprintf(fp, " %5.4f", tmd);
|
||||||
uint_fast64_t fIdx = FrameIndex.load();
|
uint_fast64_t fIdx = FrameIndex.load();
|
||||||
if (fIdx)
|
if (fIdx)
|
||||||
fprintf(fp, " (%llu)", fIdx);
|
fprintf(fp, " (%" PRIu64 ")", fIdx);
|
||||||
fprintf(fp, "] ");
|
fprintf(fp, "] ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue