From: Simon Glass Date: Wed, 21 Aug 2024 23:52:24 +0000 (-0600) Subject: qconfig: Fix an incorrect format-string with negative value X-Git-Url: http://git.dujemihanovic.xyz/posts?a=commitdiff_plain;h=4597acbd5943a53afb8aeb9595f2ea5a40e1f99f;p=u-boot.git 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") --- 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]