Fix debug backdoor to not crash on null format string

This commit is contained in:
Kevin Lange 2016-12-10 20:09:21 +09:00
parent 04a1a777a4
commit b7da7a4f73

View File

@ -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;