Add default switch statement
Change-Id: I591284c1b06b660fc303bb5b4fa282d403ee42c0
diff --git a/src/ethosu_pmu.c b/src/ethosu_pmu.c
index 986396e..c1f5c5b 100644
--- a/src/ethosu_pmu.c
+++ b/src/ethosu_pmu.c
@@ -26,8 +26,8 @@
#include "pmu_ethosu.h"
#include <assert.h>
+#include <inttypes.h>
#include <stddef.h>
-#include <stdint.h>
/*****************************************************************************
* Defines
@@ -69,6 +69,8 @@
switch (id)
{
EXPAND_PMU_EVENT_TYPE(EVTYPE, SEMICOLON);
+ default:
+ LOG_ERR("Unknown PMU event id: 0x%" PRIx32 "\n", id);
}
return ETHOSU_PMU_SENTINEL;