summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/tests/hwmon_pmu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/tests/hwmon_pmu.c b/tools/perf/tests/hwmon_pmu.c
index ada6e445c4c4..62e0841a6c31 100644
--- a/tools/perf/tests/hwmon_pmu.c
+++ b/tools/perf/tests/hwmon_pmu.c
@@ -2,6 +2,7 @@
#include "hwmon_pmu.h"
#include <errno.h>
+#include <inttypes.h>
#include <fcntl.h>
#include <linux/compiler.h>
@@ -196,9 +197,9 @@ static int do_test(size_t i, bool with_pmu, bool with_alias)
continue;
if (evsel->core.attr.config != (u64)test_events[i].key.type_and_num) {
- pr_debug("FAILED %s:%d Unexpected config for '%s', %lld != %ld\n",
+ pr_debug("FAILED %s:%d Unexpected config for '%s', %" PRIu64 " != %ld\n",
__FILE__, __LINE__, str,
- evsel->core.attr.config,
+ (uint64_t)evsel->core.attr.config,
test_events[i].key.type_and_num);
ret = TEST_FAIL;
goto out;