summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2025-01-15 00:40:22 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2025-01-15 00:41:41 +0300
commit7ef9bdec9a22ad48a76e0c446d54b2274eaf2fca (patch)
tree57619be804c4b21484ebeac9459d470ed4675a6b /tools/perf/scripts/python/export-to-sqlite.py
parent21d8dd0daf4cf4627a0c4b813e0f91bcda67598a (diff)
downloadlinux-7ef9bdec9a22ad48a76e0c446d54b2274eaf2fca.tar.xz
Input: Use str_enable_disable-like helpers
Replace ternary (condition ? "enable" : "disable") syntax with helpers from string_choices.h because: 1. Simple function call with one argument is easier to read. Ternary operator has three arguments and with wrapping might lead to quite long code. 2. Is slightly shorter thus also easier to read. 3. It brings uniformity in the text - same string. 4. Allows deduping by the linker, which results in a smaller binary file. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20250114192701.912430-1-krzysztof.kozlowski@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions