Fix debug backdoor to not crash on null format string
This commit is contained in:
parent
04a1a777a4
commit
b7da7a4f73
@ -557,7 +557,7 @@ static int sys_sysfunc(int fn, char ** args) {
|
||||
case 8:
|
||||
PTR_VALIDATE(args);
|
||||
debug_print(WARNING, "0x%x 0x%x 0x%x 0x%x", args[0], args[1], args[2], args[3]);
|
||||
_debug_print(args[0], (uintptr_t)args[1], (uint32_t)args[2], args[3]);
|
||||
_debug_print(args[0], (uintptr_t)args[1], (uint32_t)args[2], args[3] ? args[3] : "(null)");
|
||||
return 0;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user