diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-30 06:46:30 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-11-05 19:11:31 +0300 |
commit | 9994baadc0317e1a6a252b2b873f47f9c3390b57 (patch) | |
tree | ba7048a78833eb9dbfdca60098c5e070699b17a6 /tools/patman | |
parent | 8c17f8c5d21842bc95ca6e27680009b6bc650b0f (diff) | |
download | u-boot-9994baadc0317e1a6a252b2b873f47f9c3390b57.tar.xz |
patman: Fix spelling of plural for warning
Tidy up the extra 's' when there is only a single warning. Fix the empty
print statement also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman')
-rw-r--r-- | tools/patman/patchstream.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 1cb4d6ed0d..b3a25d59d1 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -665,12 +665,13 @@ def fix_patches(series, fnames): cmt.count = count result = fix_patch(backup_dir, fname, series, cmt) if result: - print('%d warnings for %s:' % (len(result), fname)) + print('%d warning%s for %s:' % + (len(result), 's' if len(result) > 1 else '', fname)) for warn in result: - print('\t', warn) - print + print('\t%s' % warn) + print() count += 1 - print('Cleaned %d patches' % count) + print('Cleaned %d patch%s' % (count, 'es' if count > 1 else '')) def insert_cover_letter(fname, series, count): """Inserts a cover letter with the required info into patch 0 |