From 6c08e5b0ed2bfdd46064187ba39a30c91913fcd7 Mon Sep 17 00:00:00 2001 From: Hari Gowtham Date: Thu, 24 Oct 2019 17:40:44 +0530 Subject: 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 --- extras/quota/quota_fsck.py | 4 ++-- 1 file 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): -- cgit