X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=btrfs-debugfs;h=a7ecd16d656c99c45e58002d9e39347cb149b7f1;hb=e02049d964e77d22348bf940a7027a1aff558f18;hp=dfb88539a8312cb39481135685362bf5e77c37b7;hpb=1df01f842756a3c9e7912c84df3d0fddec087a44;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/btrfs-debugfs b/btrfs-debugfs index dfb8853..a7ecd16 100755 --- a/btrfs-debugfs +++ b/btrfs-debugfs @@ -356,8 +356,13 @@ def print_block_groups(mountpoint): ctypes.memmove(ctypes.addressof(bg), p, ctypes.sizeof(bg)) if bg.flags & BTRFS_BLOCK_GROUP_DATA: - print "block group offset %Lu len %Lu used %Lu chunk_objectid %Lu flags %Lu usage %.2f" %\ - (header.objectid, header.offset, bg.used, bg.chunk_objectid, bg.flags, float(bg.used) / float(header.offset)) + print "block group offset %s len %s used %s chunk_objectid %Lu flags %Lu usage %.2f" %\ + ('{:>14}'.format(header.objectid), + '{:>10}'.format(header.offset), + '{:>10}'.format(bg.used), + bg.chunk_objectid, + bg.flags, + float(bg.used) / float(header.offset)) total_free += (header.offset - bg.used) if min_used >= bg.used: