]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists: Fix variable name's inconsistency in hists__for_each() macro
authorYuya Fujita <fujita.yuya@fujitsu.com>
Thu, 19 Dec 2019 08:08:32 +0000 (08:08 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 20 Dec 2019 21:58:13 +0000 (18:58 -0300)
commit5048d77ec463b1b3dd952e2dbe9aa9eb97126b3e
treee0fcf6791d0c7432110b18ff839844bc3ad16420
parent3c07732e10d5d314298faa7420b28ac3f6e36805
perf hists: Fix variable name's inconsistency in hists__for_each() macro

Variable names are inconsistent in hists__for_each macro().

Due to this inconsistency, the macro replaces its second argument with
"fmt" regardless of its original name.

So far it works because only "fmt" is passed to the second argument.
However, this behavior is not expected and should be fixed.

Fixes: 3fb6b418b8e3 ("perf hists: Introduce hists__for_each_format macro")
Fixes: 1856079db676 ("perf hists: Introduce hists__for_each_sort_list macro")
Signed-off-by: Yuya Fujita <fujita.yuya@fujitsu.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/OSAPR01MB1588E1C47AC22043175DE1B2E8520@OSAPR01MB1588.jpnprd01.prod.outlook.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.h