tools: Adopt __printf from kernel sources
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Jun 2017 14:57:54 +0000 (11:57 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 19 Jun 2017 18:25:26 +0000 (15:25 -0300)
commitafaed6d3e4aa56e939b496aafa5c97852e223122
treeeed63017d5b665d988785fcbd67f8f75bfe553a3
parent6c3466435b03fb84647f5ad413f98f2ccb12b5c2
tools: Adopt __printf from kernel sources

To have a more compact way to ask the compiler to perform printf like
vargargs validation.

v2: Fixed up build on arm, squashing a patch by Kim Phillips, thanks!

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kim Phillips <kim.phillips@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-dopkqmmuqs04cxzql0024nnu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/linux/compiler-gcc.h
tools/perf/arch/arm/util/cs-etm.c
tools/perf/util/cache.h
tools/perf/util/debug.h
tools/perf/util/intel-pt-decoder/intel-pt-log.h
tools/perf/util/probe-event.h
tools/perf/util/strbuf.h
tools/perf/util/util.h