From e4f09e559c15439f65f876e0d08c0730ecb0e840 Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Fri, 26 Nov 2021 16:13:58 +0100 Subject: Fixing compiler warnings Updating compiler warnings enabled for TFLu. Fixing compiler warnings reported by Arm Clang and Arm GCC. Change-Id: Iea959a59ea5416326a3014654389af82903c94a3 --- lib/ethosu_monitor/src/ethosu_monitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 #include EthosUMonitor::EthosUMonitor(std::vector __eventRecordIds, Backend __backend) : @@ -34,7 +35,7 @@ void EthosUMonitor::monitorSample(ethosu_driver *drv) { break; case PRINTF: default: - LOG("ethosu_pmu_cntr%d : %u\n", i, eventCount[i]); + LOG("ethosu_pmu_cntr%zd : %" PRIu32 "\n", i, eventCount[i]); } } } -- cgit v1.2.1