mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 01:02:48 +01:00
service: Print correct command ID on unimplemented function.
This commit is contained in:
parent
4fb1b24d68
commit
d3cc369618
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ void ServiceFrameworkBase::RegisterHandlersBase(const FunctionInfoBase* function
|
||||||
void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext& ctx,
|
void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext& ctx,
|
||||||
const FunctionInfoBase* info) {
|
const FunctionInfoBase* info) {
|
||||||
auto cmd_buf = ctx.CommandBuffer();
|
auto cmd_buf = ctx.CommandBuffer();
|
||||||
std::string function_name = info == nullptr ? fmt::format("{:#08x}", cmd_buf[0]) : info->name;
|
std::string function_name = info == nullptr ? fmt::format("{:#08x}", ctx.GetCommand()) : info->name;
|
||||||
|
|
||||||
fmt::MemoryWriter w;
|
fmt::MemoryWriter w;
|
||||||
w.write("function '{}': port='{}' cmd_buf={{[0]={:#x}", function_name, service_name,
|
w.write("function '{}': port='{}' cmd_buf={{[0]={:#x}", function_name, service_name,
|
||||||
|
|
Loading…
Reference in a new issue