aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPer Åstrand <per.astrand@arm.com>2020-09-28 08:31:46 +0200
committerPer Åstrand <per.astrand@arm.com>2020-09-28 12:44:29 +0200
commite07b1f9cfc5ae797c58af30637a5ca5c21c148e2 (patch)
treec5a3aaf8affcd972b2f9923344f487e169e99fc9 /src
parent14ccfeebdcfdf6e8680eb1df9f921dce9d47b716 (diff)
downloadethos-u-core-driver-e07b1f9cfc5ae797c58af30637a5ca5c21c148e2.tar.gz
Add default switch statement
Change-Id: I591284c1b06b660fc303bb5b4fa282d403ee42c0
Diffstat (limited to 'src')
-rw-r--r--src/ethosu_pmu.c4
1 files changed, 3 insertions, 1 deletions
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 @@ enum ethosu_pmu_event_type pmu_event_type(uint32_t id)
switch (id)
{
EXPAND_PMU_EVENT_TYPE(EVTYPE, SEMICOLON);
+ default:
+ LOG_ERR("Unknown PMU event id: 0x%" PRIx32 "\n", id);
}
return ETHOSU_PMU_SENTINEL;