From 3d3728aa1ad07930b5e89589491bd1bf7fa9f060 Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Mon, 13 May 2024 02:43:58 -0700 Subject: [PATCH] squishy: scsi: Added a `__repr__` for `SCSICommand` to show a bit more info --- squishy/scsi/command.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/squishy/scsi/command.py b/squishy/scsi/command.py index b72795cf..2a5edf19 100644 --- a/squishy/scsi/command.py +++ b/squishy/scsi/command.py @@ -625,6 +625,9 @@ def __init__(self, opcode: int, group_code: GroupCode, *subcons, size: int = Non # if (self.sizeof() // 8) != self.command_size: # raise RuntimeError(f'Structure is actually {self.sizeof() // 8} bytes long but must be {self.command_size} bytes long.') + def __repr__(self): + return f'\n' + def len(self) -> int: ''' Return structure length in bytes '''