Fixing compiler warnings
Updating compiler warnings enabled for TFLu.
Fixing compiler warnings reported by Arm Clang and Arm GCC.
Change-Id: Iea959a59ea5416326a3014654389af82903c94a3
diff --git a/lib/ethosu_monitor/src/ethosu_monitor.cpp b/lib/ethosu_monitor/src/ethosu_monitor.cpp
index 651fc28..0fe4b44 100644
--- a/lib/ethosu_monitor/src/ethosu_monitor.cpp
+++ b/lib/ethosu_monitor/src/ethosu_monitor.cpp
@@ -18,6 +18,7 @@
#include "ethosu_monitor.hpp"
#include "ethosu_log.h"
+#include <inttypes.h>
#include <stdio.h>
EthosUMonitor::EthosUMonitor(std::vector<int32_t> __eventRecordIds, Backend __backend) :
@@ -34,7 +35,7 @@
break;
case PRINTF:
default:
- LOG("ethosu_pmu_cntr%d : %u\n", i, eventCount[i]);
+ LOG("ethosu_pmu_cntr%zd : %" PRIu32 "\n", i, eventCount[i]);
}
}
}