]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit3cb4cbc154b57c2fb842fbacc6ea4bd625ce680f
tree06b6531a2d3d6ad3f6183a7dabc9afda18a464cf
parent75db7efbef22a829fc8c36c1ff1ef000081f44ba
perf hists: Fix variable name's inconsistency in hists__for_each() macro

BugLink: https://bugs.launchpad.net/bugs/1862259
commit 55347ec340af401437680fd0e88df6739a967f9f upstream.

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: f0786af536bb ("perf hists: Introduce hists__for_each_format macro")
Fixes: aa6f50af822a ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/perf/util/hist.h