diff options
author | Hari Gowtham <hgowtham@redhat.com> | 2019-10-24 17:40:44 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-11-06 13:11:21 +0000 |
commit | 6c08e5b0ed2bfdd46064187ba39a30c91913fcd7 (patch) | |
tree | c74b0a1920eb0219efdfce8808a4fb3ed9f521db /extras | |
parent | 93e31716f11cb10d21f6fc59e8cdb6baed50865d (diff) |
scripts: quota_fsck script TypeError: %d format:not dict
Problem: One of the prints in the script have been using
%i as the format for printing which doesn't work.
Fix: use %s as the format in the place of %i
Fixes: bz#1764129
Change-Id: I4480ede7bf62906ddedbe5f880a1e89c76946641
Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/quota/quota_fsck.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/quota/quota_fsck.py b/extras/quota/quota_fsck.py index 485a37a5ba7..174f2a2a44c 100755 --- a/extras/quota/quota_fsck.py +++ b/extras/quota/quota_fsck.py @@ -58,10 +58,10 @@ def print_msg(log_type, path, xattr_dict = {}, stbuf = "", dir_size = None): elif log_type == QUOTA_SIZE_MISMATCH: print("mismatch") if dir_size is not None: - print('%24s %60s %12s %12s' % ("Size Mismatch", path, + print('%24s %60s %12s %12s' % ("Size Mismatch", path, xattr_dict, dir_size)) else: - print('%-24s %-60s %-12i %-12i' % ("Size Mismatch", path, xattr_dict, + print('%-24s %-60s %-12s %-12s' % ("Size Mismatch", path, xattr_dict, stbuf.st_size)) def size_differs_lot(s1, s2): |