This commit is contained in:
xwings
2021-11-09 09:38:56 +08:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ class STM32F4xxGpio(QlPeripheral, GpioHooks):
if new_bit:
self.set_pin(i)
else:
self.reset_pin(i - 16)
self.reset_pin(i)
return
+3 -3
View File
@@ -20,9 +20,9 @@ def ql_syscall_arch_prctl(ql: Qiling, code: int, addr: int):
}
if code not in handlers:
raise NotImplementedError(f'prctl code {code:#x} not implemented')
handlers[code]()
ql.log.warning(f'prctl code {code:#x} not implemented')
else:
handlers[code]()
return 0
+1 -1
View File
@@ -266,7 +266,7 @@ def ql_syscall_write(ql: Qiling, fd: int, buf: int, count: int):
except:
regreturn = -1
else:
ql.log.debug(f'write() CONTENT: {data.decode()!r}')
ql.log.debug(f'write() CONTENT: {bytes(data)}')
if hasattr(ql.os.fd[fd], 'write'):
ql.os.fd[fd].write(data)