From d3cc3696183cade265a792f1df71629eb0d21daa Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 17 Oct 2017 18:02:08 -0400 Subject: service: Print correct command ID on unimplemented function. --- src/core/hle/service/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 240d79715..93a6d2618 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -85,7 +85,7 @@ void ServiceFrameworkBase::RegisterHandlersBase(const FunctionInfoBase* function void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext& ctx, const FunctionInfoBase* info) { 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; w.write("function '{}': port='{}' cmd_buf={{[0]={:#x}", function_name, service_name, -- cgit v1.2.3