diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-06-27 03:22:04 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-07-16 01:08:38 +0900 |
commit | d5afb4824f142205900aa4a3a133b5dd68720e67 (patch) | |
tree | 6296cdfe5d76267c092c9298969fac1566ccf2b7 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | d67624d814ae40a655981992b0f0d652e6f591b8 (diff) |
kconfig: refactor error messages in sym_check_print_recursive()
Improve the error messages and clean up redundant code.
[1] remove redundant next_sym->name checks
If 'next_sym' is a choice, the first 'if' block is executed. In the
subsequent 'else if' blocks, 'next_sym" is not a choice, hence
next_sym->name is not NULL.
[2] remove redundant sym->name checks
A choice is never selected or implied by anyone because it has no name
(it is syntactically impossible). If it is, sym->name is not NULL.
[3] Show the location of choice instead of "<choice>"
"part of choice <choice>" does not convey useful information. Since a
choice has no name, it is more informative to display the file name and
line number.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions