mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
Add debugging info for when sys_tty_write is executed
This commit is contained in:
parent
c7f5475b56
commit
677d5f09ce
4 changed files with 24 additions and 7 deletions
|
|
@ -95,16 +95,16 @@ error_code console_getc()
|
|||
return CELL_OK;
|
||||
}
|
||||
|
||||
void console_putc(char ch)
|
||||
void console_putc(ppu_thread& ppu, char ch)
|
||||
{
|
||||
sysPrxForUser.trace("console_putc(ch=0x%x)", ch);
|
||||
sys_tty_write(0, vm::var<char>(ch), 1, vm::var<u32>{});
|
||||
sys_tty_write(ppu, 0, vm::var<char>(ch), 1, vm::var<u32>{});
|
||||
}
|
||||
|
||||
error_code console_write(vm::ptr<char> data, u32 len)
|
||||
error_code console_write(ppu_thread& ppu, vm::ptr<char> data, u32 len)
|
||||
{
|
||||
sysPrxForUser.trace("console_write(data=*0x%x, len=%d)", data, len);
|
||||
sys_tty_write(0, data, len, vm::var<u32>{});
|
||||
sys_tty_write(ppu, 0, data, len, vm::var<u32>{});
|
||||
return CELL_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue