Re: [PATCH] perf tools: Fix build failure on 32-bit arch

From: Arnaldo Carvalho de Melo
Date: Thu Jun 11 2015 - 10:15:14 EST


Em Thu, Jun 11, 2015 at 12:44:24PM +0000, He Kuang escreveu:
> Failed in 32bit arch build like this:
>
> CC /opt/h00206996/output/perf/arm32/builtin-record.o
> util/session.c: In function âperf_session__warn_about_errorsâ:
> util/session.c:1304:9: error: format â%luâ expects argument of type âlong unsigned intâ,
> but argument 2 has type âlong long unsigned intâ [-Werror=format=]
>
> builtin-report.c: In function âperf_evlist__tty_browse_histsâ:
> builtin-report.c:323:2: error: format â%luâ expects argument of type âlong unsigned intâ,
> but argument 3 has type âu64â [-Werror=format=]
>
> Replace %lu format strings in warning message with PRIu64 for u64
> 'total_lost_samples' to fix this problem.

Thanks, applied.

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/