aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Hunter <[email protected]>2022-09-05 10:34:22 +0300
committerArnaldo Carvalho de Melo <[email protected]>2022-10-04 08:55:21 -0300
commit50d7620b27d19bfa4cc12764d27c272f2ee3e28a (patch)
tree14d9a96647cb6f62839bd0e2bdf5a468d68c84bc
parent52de6aacbe3dc498456a565a85adb2b35f2d05b6 (diff)
perf intel-pt: Improve object code read error message
The offset is more readable in hex instead of decimal. Reviewed-by: Andi Kleen <[email protected]> Reviewed-by: Namhyung Kim <[email protected]> Signed-off-by: Adrian Hunter <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/intel-pt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c
index d5e9fc8106dd..c01ff8001501 100644
--- a/tools/perf/util/intel-pt.c
+++ b/tools/perf/util/intel-pt.c
@@ -842,7 +842,8 @@ static int intel_pt_walk_next_insn(struct intel_pt_insn *intel_pt_insn,
offset, buf,
INTEL_PT_INSN_BUF_SZ);
if (len <= 0) {
- intel_pt_log("ERROR: failed to read at %" PRIu64 " ", offset);
+ intel_pt_log("ERROR: failed to read at offset %#" PRIx64 " ",
+ offset);
if (intel_pt_enable_logging)
dso__fprintf(al.map->dso, intel_pt_log_fp());
return -EINVAL;