diff --git a/sdb/commands/internal/table.py b/sdb/commands/internal/table.py index 5b126c91..7828cec8 100644 --- a/sdb/commands/internal/table.py +++ b/sdb/commands/internal/table.py @@ -45,9 +45,9 @@ def __init__( else: to_str: Callable[[Any], str] = str self.formatters = { - field: - (formatters[field] if field in formatters.keys() else to_str) - for field in fields + field: ( + formatters[field] if field in formatters.keys() else to_str + ) for field in fields } self.maxfieldlen = dict.fromkeys(fields, 0) diff --git a/sdb/commands/zfs/blkptr.py b/sdb/commands/zfs/blkptr.py index b09a2272..e8222a66 100644 --- a/sdb/commands/zfs/blkptr.py +++ b/sdb/commands/zfs/blkptr.py @@ -137,8 +137,8 @@ def pretty_print(self, objs: Iterable[drgn.Object]) -> None: print(f"iv={bp.blk_dva[2].dva_word[1]:#x}", end='') print(f"{BP_GET_IV2(bp):#x}") - if BP_IS_GANG(bp) and (DVA_GET_ASIZE(bp.blk_dva[2]) <= - DVA_GET_ASIZE(bp.blk_dva[1]) / 2): + if BP_IS_GANG(bp) and (DVA_GET_ASIZE(bp.blk_dva[2]) + <= DVA_GET_ASIZE(bp.blk_dva[1]) / 2): copies -= 1 print(f"[L{BP_GET_LEVEL(bp)}", end=' ') diff --git a/sdb/commands/zfs/zfs_dbgmsg.py b/sdb/commands/zfs/zfs_dbgmsg.py index 26599200..2c611152 100644 --- a/sdb/commands/zfs/zfs_dbgmsg.py +++ b/sdb/commands/zfs/zfs_dbgmsg.py @@ -52,8 +52,8 @@ def print_msg(obj: drgn.Object, def pretty_print(self, objs: Iterable[drgn.Object]) -> None: for obj in objs: - ZfsDbgmsg.print_msg(obj, self.args.verbose >= 1, - self.args.verbose >= 2) + ZfsDbgmsg.print_msg(obj, self.args.verbose >= 1, self.args.verbose + >= 2) def no_input(self) -> Iterable[drgn.Object]: proc_list = sdb.get_object("zfs_dbgmsgs").pl_list