mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
fix typo
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user