aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/instruments/PMU.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/instruments/PMU.cpp')
-rw-r--r--tests/framework/instruments/PMU.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/framework/instruments/PMU.cpp b/tests/framework/instruments/PMU.cpp
index d0cacbba73..053c70a83f 100644
--- a/tests/framework/instruments/PMU.cpp
+++ b/tests/framework/instruments/PMU.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -76,7 +76,7 @@ void PMU::open(const perf_event_attr &perf_config)
const int result = ioctl(_fd, PERF_EVENT_IOC_ENABLE, 0);
if(result == -1)
{
- ARM_COMPUTE_ERROR("Failed to enable PMU counter: %d", errno);
+ ARM_COMPUTE_ERROR_VAR("Failed to enable PMU counter: %d", errno);
}
}
@@ -94,7 +94,7 @@ void PMU::reset()
const int result = ioctl(_fd, PERF_EVENT_IOC_RESET, 0);
if(result == -1)
{
- ARM_COMPUTE_ERROR("Failed to reset PMU counter: %d", errno);
+ ARM_COMPUTE_ERROR_VAR("Failed to reset PMU counter: %d", errno);
}
}
} // namespace framework