diff options
Diffstat (limited to 'tests/framework/instruments/PMU.h')
-rw-r--r-- | tests/framework/instruments/PMU.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/framework/instruments/PMU.h b/tests/framework/instruments/PMU.h index d51b2f8ae1..e0a1870539 100644 --- a/tests/framework/instruments/PMU.h +++ b/tests/framework/instruments/PMU.h @@ -86,8 +86,10 @@ T PMU::get_value() const T value{}; const ssize_t result = read(_fd, &value, sizeof(T)); - ARM_COMPUTE_ERROR_ON_MSG(result == -1, "Can't get PMU counter value: %d", errno); - ARM_COMPUTE_UNUSED(result); + if(result == -1) + { + ARM_COMPUTE_ERROR("Can't get PMU counter value: %d", errno); + } return value; } |