summaryrefslogtreecommitdiff
path: root/boottime_tools/bootio/bootio_collector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'boottime_tools/bootio/bootio_collector.cpp')
-rw-r--r--boottime_tools/bootio/bootio_collector.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/boottime_tools/bootio/bootio_collector.cpp b/boottime_tools/bootio/bootio_collector.cpp
index dc13525e..495a9aa4 100644
--- a/boottime_tools/bootio/bootio_collector.cpp
+++ b/boottime_tools/bootio/bootio_collector.cpp
@@ -275,8 +275,10 @@ void PrintPids(DataContainer& data, std::unordered_map<int, uint64_t>& cpuDataMa
stats.rbytes += (newerSample->readbytes() - olderSample->readbytes());
stats.wbytes += (newerSample->writebytes() - olderSample->writebytes());
-#define NUMBER "%-13" PRId64
- printf("%5" PRId64 " - %-5" PRId64 " " NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER "%-9.2f\n",
+ // Note that all of these are explicitly `long long`s, not int64_t,
+ // so we can't use PRId64 here.
+#define NUMBER "%-13lld"
+ printf("%5lld - %-5lld " NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER "%-9.2f\n",
#undef NUMBER
olderSample->uptime(),
newerSample->uptime(),
@@ -290,7 +292,7 @@ void PrintPids(DataContainer& data, std::unordered_map<int, uint64_t>& cpuDataMa
isFirstSample = false;
}
printf("-----------------------------------------------------------------------------\n");
-#define NUMBER "%-13" PRId64
+#define NUMBER "%-13lld"
printf("%-15s" NUMBER NUMBER NUMBER NUMBER NUMBER NUMBER "\n",
#undef NUMBER
"Total",