Merge pull request #4308 from hp9k/debugger_print_char

debugger: add %c to logerror
This commit is contained in:
ajrhacker 2018-11-17 15:57:39 -05:00 committed by GitHub
commit e400164aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -657,6 +657,18 @@ int debugger_commands::mini_printf(char *buffer, const char *format, int params,
param++;
params--;
break;
case 'C':
case 'c':
if (params == 0)
{
m_console.printf("Not enough parameters for format!\n");
return 0;
}
p += sprintf(p, "%c", char(*param));
param++;
params--;
break;
}
}