From 4597acbd5943a53afb8aeb9595f2ea5a40e1f99f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 21 Aug 2024 17:52:24 -0600 Subject: [PATCH] qconfig: Fix an incorrect format-string with negative value This is not allowed, so use ljust() instead. This fixes the 'qconfig -i -I help' command. Signed-off-by: Simon Glass Fixes: 1bd43060b3e ("moveconfig: Use f strings where possible") --- tools/qconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qconfig.py b/tools/qconfig.py index 7b868c7d72..8c2fc9efc5 100755 --- a/tools/qconfig.py +++ b/tools/qconfig.py @@ -1595,7 +1595,7 @@ def imply(args): if flag == 'help' or bad: print("Imply flags: (separate with ',')") for name, info in IMPLY_FLAGS.items(): - print(f' {name:-15s}: {info[1]}') + print(f' {name.ljust(15)}: {info[1]}') return 1 imply_flags |= IMPLY_FLAGS[flag][0] -- 2.39.5