lkml.org 
[lkml]   [2012]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/17] perf, tool: Fix format string for x86-32 compilation
    Date
    Using PRIu64 for printing out u64 nr_events to fix compilation
    for x86 32 bits.

    Signed-off-by: Jiri Olsa <jolsa@redhat.com>
    ---
    tools/perf/builtin-report.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
    index 35c5a59..55901b3 100644
    --- a/tools/perf/builtin-report.c
    +++ b/tools/perf/builtin-report.c
    @@ -304,7 +304,7 @@ static size_t hists__fprintf_nr_sample_events(struct hists *self,
    if (evname != NULL)
    ret += fprintf(fp, " of event '%s'", evname);

    - ret += fprintf(fp, "\n# Event count (approx.): %lu", nr_events);
    + ret += fprintf(fp, "\n# Event count (approx.): %" PRIu64, nr_events);
    return ret + fprintf(fp, "\n#\n");
    }

    --
    1.7.7.6


    \
     
     \ /
      Last update: 2012-05-02 14:21    [W:4.897 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site