tools: Adopt __scanf 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:27:05 +0000 (15:27 -0300)
commit3ee350fb8a2b30fe47dd9e3b299dff0178fc8c88
tree8d7f8bf9243207e0c400b124dd4b230cb44f9436
parentafaed6d3e4aa56e939b496aafa5c97852e223122
tools: Adopt __scanf from kernel sources

To have a more compact way to ask the compiler to perform scanf like
argument validation.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-yzqrhfjrn26lqqtwf55egg0h@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/linux/compiler-gcc.h
tools/perf/util/pmu.h