perf intel-pt: Improve object code read error message
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 5 Sep 2022 07:34:22 +0000 (10:34 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:21 +0000 (08:55 -0300)
The offset is more readable in hex instead of decimal.

Reviewed-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220905073424.3971-5-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c

index d5e9fc8..c01ff80 100644 (file)
@@ -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;