diff options
| author | 2018-02-04 17:00:33 -0500 | |
|---|---|---|
| committer | 2018-02-04 17:00:33 -0500 | |
| commit | 764bbaa19c9bd0ddb597a51a373debc24627b500 (patch) | |
| tree | 8029ea228b8c640de59b8c2915599f5d5de615cd /src | |
| parent | logger: Add AM service logging category. (diff) | |
| download | yuzu-764bbaa19c9bd0ddb597a51a373debc24627b500.tar.gz yuzu-764bbaa19c9bd0ddb597a51a373debc24627b500.tar.xz yuzu-764bbaa19c9bd0ddb597a51a373debc24627b500.zip | |
logger: Use Service_NVDRV category where applicable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nvdrv/devices/nvmap.cpp | 10 | ||||
| -rw-r--r-- | src/core/hle/service/nvdrv/interface.cpp | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp index 74ee7e154..f6196da1b 100644 --- a/src/core/hle/service/nvdrv/devices/nvmap.cpp +++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp | |||
| @@ -52,7 +52,7 @@ u32 nvmap::IocCreate(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 52 | u32 handle = next_handle++; | 52 | u32 handle = next_handle++; |
| 53 | handles[handle] = std::move(object); | 53 | handles[handle] = std::move(object); |
| 54 | 54 | ||
| 55 | LOG_WARNING(Service, "(STUBBED) size 0x%08X", params.size); | 55 | LOG_WARNING(Service_NVDRV, "(STUBBED) size 0x%08X", params.size); |
| 56 | 56 | ||
| 57 | params.handle = handle; | 57 | params.handle = handle; |
| 58 | 58 | ||
| @@ -74,7 +74,7 @@ u32 nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 74 | object->addr = params.addr; | 74 | object->addr = params.addr; |
| 75 | object->status = Object::Status::Allocated; | 75 | object->status = Object::Status::Allocated; |
| 76 | 76 | ||
| 77 | LOG_WARNING(Service, "(STUBBED) Allocated address 0x%llx", params.addr); | 77 | LOG_WARNING(Service_NVDRV, "(STUBBED) Allocated address 0x%llx", params.addr); |
| 78 | 78 | ||
| 79 | std::memcpy(output.data(), ¶ms, sizeof(params)); | 79 | std::memcpy(output.data(), ¶ms, sizeof(params)); |
| 80 | return 0; | 80 | return 0; |
| @@ -84,7 +84,7 @@ u32 nvmap::IocGetId(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 84 | IocGetIdParams params; | 84 | IocGetIdParams params; |
| 85 | std::memcpy(¶ms, input.data(), sizeof(params)); | 85 | std::memcpy(¶ms, input.data(), sizeof(params)); |
| 86 | 86 | ||
| 87 | LOG_WARNING(Service, "called"); | 87 | LOG_WARNING(Service_NVDRV, "called"); |
| 88 | 88 | ||
| 89 | auto itr = handles.find(params.handle); | 89 | auto itr = handles.find(params.handle); |
| 90 | ASSERT(itr != handles.end()); | 90 | ASSERT(itr != handles.end()); |
| @@ -99,7 +99,7 @@ u32 nvmap::IocFromId(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 99 | IocFromIdParams params; | 99 | IocFromIdParams params; |
| 100 | std::memcpy(¶ms, input.data(), sizeof(params)); | 100 | std::memcpy(¶ms, input.data(), sizeof(params)); |
| 101 | 101 | ||
| 102 | LOG_WARNING(Service, "(STUBBED) called"); | 102 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 103 | 103 | ||
| 104 | auto itr = std::find_if(handles.begin(), handles.end(), | 104 | auto itr = std::find_if(handles.begin(), handles.end(), |
| 105 | [&](const auto& entry) { return entry.second->id == params.id; }); | 105 | [&](const auto& entry) { return entry.second->id == params.id; }); |
| @@ -121,7 +121,7 @@ u32 nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output) { | |||
| 121 | IocParamParams params; | 121 | IocParamParams params; |
| 122 | std::memcpy(¶ms, input.data(), sizeof(params)); | 122 | std::memcpy(¶ms, input.data(), sizeof(params)); |
| 123 | 123 | ||
| 124 | LOG_WARNING(Service, "(STUBBED) called type=%u", params.type); | 124 | LOG_WARNING(Service_NVDRV, "(STUBBED) called type=%u", params.type); |
| 125 | 125 | ||
| 126 | auto itr = handles.find(params.handle); | 126 | auto itr = handles.find(params.handle); |
| 127 | ASSERT(itr != handles.end()); | 127 | ASSERT(itr != handles.end()); |
diff --git a/src/core/hle/service/nvdrv/interface.cpp b/src/core/hle/service/nvdrv/interface.cpp index 85ecde6d2..af8fa44c9 100644 --- a/src/core/hle/service/nvdrv/interface.cpp +++ b/src/core/hle/service/nvdrv/interface.cpp | |||
| @@ -11,7 +11,7 @@ namespace Service { | |||
| 11 | namespace Nvidia { | 11 | namespace Nvidia { |
| 12 | 12 | ||
| 13 | void NVDRV::Open(Kernel::HLERequestContext& ctx) { | 13 | void NVDRV::Open(Kernel::HLERequestContext& ctx) { |
| 14 | LOG_WARNING(Service, "(STUBBED) called"); | 14 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 15 | 15 | ||
| 16 | auto buffer = ctx.BufferDescriptorA()[0]; | 16 | auto buffer = ctx.BufferDescriptorA()[0]; |
| 17 | 17 | ||
| @@ -25,7 +25,7 @@ void NVDRV::Open(Kernel::HLERequestContext& ctx) { | |||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | void NVDRV::Ioctl(Kernel::HLERequestContext& ctx) { | 27 | void NVDRV::Ioctl(Kernel::HLERequestContext& ctx) { |
| 28 | LOG_WARNING(Service, "(STUBBED) called"); | 28 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 29 | 29 | ||
| 30 | IPC::RequestParser rp{ctx}; | 30 | IPC::RequestParser rp{ctx}; |
| 31 | u32 fd = rp.Pop<u32>(); | 31 | u32 fd = rp.Pop<u32>(); |
| @@ -49,7 +49,7 @@ void NVDRV::Ioctl(Kernel::HLERequestContext& ctx) { | |||
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | void NVDRV::Close(Kernel::HLERequestContext& ctx) { | 51 | void NVDRV::Close(Kernel::HLERequestContext& ctx) { |
| 52 | LOG_WARNING(Service, "(STUBBED) called"); | 52 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 53 | 53 | ||
| 54 | IPC::RequestParser rp{ctx}; | 54 | IPC::RequestParser rp{ctx}; |
| 55 | u32 fd = rp.Pop<u32>(); | 55 | u32 fd = rp.Pop<u32>(); |
| @@ -61,7 +61,7 @@ void NVDRV::Close(Kernel::HLERequestContext& ctx) { | |||
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | void NVDRV::Initialize(Kernel::HLERequestContext& ctx) { | 63 | void NVDRV::Initialize(Kernel::HLERequestContext& ctx) { |
| 64 | LOG_WARNING(Service, "(STUBBED) called"); | 64 | LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
| 65 | IPC::ResponseBuilder rb{ctx, 3}; | 65 | IPC::ResponseBuilder rb{ctx, 3}; |
| 66 | rb.Push(RESULT_SUCCESS); | 66 | rb.Push(RESULT_SUCCESS); |
| 67 | rb.Push<u32>(0); | 67 | rb.Push<u32>(0); |
| @@ -71,7 +71,7 @@ void NVDRV::SetClientPID(Kernel::HLERequestContext& ctx) { | |||
| 71 | IPC::RequestParser rp{ctx}; | 71 | IPC::RequestParser rp{ctx}; |
| 72 | pid = rp.Pop<u64>(); | 72 | pid = rp.Pop<u64>(); |
| 73 | 73 | ||
| 74 | LOG_INFO(Service, "called, pid=0x%lx", pid); | 74 | LOG_INFO(Service_NVDRV, "called, pid=0x%lx", pid); |
| 75 | IPC::ResponseBuilder rb{ctx, 3}; | 75 | IPC::ResponseBuilder rb{ctx, 3}; |
| 76 | rb.Push(RESULT_SUCCESS); | 76 | rb.Push(RESULT_SUCCESS); |
| 77 | rb.Push<u32>(0); | 77 | rb.Push<u32>(0); |