• Arnaldo Carvalho de Melo's avatar
    perf arm64/s390: Fix printf conversion specifier for IP addresses · 6db59d35
    Arnaldo Carvalho de Melo authored
    We need to use "%#" PRIx64 for u64 values, not "%lx". In arm64's and
    s390x cases the compiler doesn't complain, but lets fix this in case
    this code gets copied to a 32-bit arch, like with powerpc 32-bit that
    got fixed in the previous patch.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Hewenliang <hewenliang4@huawei.com>
    Cc: Hu Shiyuan <hushiyuan@huawei.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Nick Desaulniers <ndesaulniers@google.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Richter <tmricht@linux.ibm.com>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    6db59d35
machine.c 1.75 KB