]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
qconfig: Fix an incorrect format-string with negative value
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 23:52:24 +0000 (17:52 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Sep 2024 17:05:43 +0000 (11:05 -0600)
This is not allowed, so use ljust() instead. This fixes the
'qconfig -i -I help' command.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 1bd43060b3e ("moveconfig: Use f strings where possible")
tools/qconfig.py

index 7b868c7d72cde70ce14346bc4b2cd530d69be1e1..8c2fc9efc5f546101bf9d3798d64b6ae0f3583a5 100755 (executable)
@@ -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]