Align win32helper.py MMIO reg debug text

This commit is contained in:
Aaron Frinzell
2021-08-11 10:19:28 -05:00
committed by Nathaniel Mitchell
parent db0338c571
commit bc0ccfd4e7
+2 -1
View File
@@ -553,7 +553,8 @@ class Win32Helper(Helper):
# @TODO: Temporarily the same as read_phys_mem for compatibility
def read_mmio_reg( self, phys_address, size ):
out_size = size
logger().log("size: {} addr: {}".format(size, phys_address))
if logger().DEBUG:
logger().log("[helper] -> read_mmio_reg( phys_address=0x{:X}, size={} )".format(phys_address, size))
in_buf = struct.pack( '3I', (phys_address>>32)&0xFFFFFFFF, phys_address&0xFFFFFFFF, size )
out_buf = self._ioctl( IOCTL_READ_MMIO, in_buf, out_size )
if size == 8: