scripts: Tweaked corrupt rbyd coloring to include addresses
This matches the coloring in dbglfs.py for other erroneous conditions, and also matches how we color hidden items when shown. Also fixed some minor bugs in grm printing.
This commit is contained in:
+2
-2
@@ -1803,10 +1803,10 @@ def main(disk, roots=None, *,
|
||||
# corrupted? try to keep printing the tree
|
||||
if not rbyd:
|
||||
if not quiet:
|
||||
print('%04x.%04x: %*s%s%s%s' % (
|
||||
print('%s%04x.%04x: %*s%s%s' % (
|
||||
'\x1b[31m' if color else '',
|
||||
rbyd.block, rbyd.trunk,
|
||||
t_width, '',
|
||||
'\x1b[31m' if color else '',
|
||||
'(corrupted rbyd %s)' % rbyd.addr(),
|
||||
'\x1b[m' if color else ''))
|
||||
prbyd = None
|
||||
|
||||
Reference in New Issue
Block a user