diff options
| author | 2018-04-24 10:55:53 -0400 | |
|---|---|---|
| committer | 2018-04-24 12:01:31 -0400 | |
| commit | bd9c2aa51fca20b4f756b2fbe87b6640b301f28b (patch) | |
| tree | bfb8b48ac11f5cef461717b43b015946464969f2 /src | |
| parent | ssl: Move logging macros over to new fmt-compatible ones (diff) | |
| download | yuzu-bd9c2aa51fca20b4f756b2fbe87b6640b301f28b.tar.gz yuzu-bd9c2aa51fca20b4f756b2fbe87b6640b301f28b.tar.xz yuzu-bd9c2aa51fca20b4f756b2fbe87b6640b301f28b.zip | |
time: Move logging macros over to new fmt-compatible ones
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/time/time.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 2604ecc1c..278465358 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -32,14 +32,14 @@ private: | |||
| 32 | const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::seconds>( | 32 | const s64 time_since_epoch{std::chrono::duration_cast<std::chrono::seconds>( |
| 33 | std::chrono::system_clock::now().time_since_epoch()) | 33 | std::chrono::system_clock::now().time_since_epoch()) |
| 34 | .count()}; | 34 | .count()}; |
| 35 | LOG_DEBUG(Service_Time, "called"); | 35 | NGLOG_DEBUG(Service_Time, "called"); |
| 36 | IPC::ResponseBuilder rb{ctx, 4}; | 36 | IPC::ResponseBuilder rb{ctx, 4}; |
| 37 | rb.Push(RESULT_SUCCESS); | 37 | rb.Push(RESULT_SUCCESS); |
| 38 | rb.Push<u64>(time_since_epoch); | 38 | rb.Push<u64>(time_since_epoch); |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | void GetSystemClockContext(Kernel::HLERequestContext& ctx) { | 41 | void GetSystemClockContext(Kernel::HLERequestContext& ctx) { |
| 42 | LOG_WARNING(Service_Time, "(STUBBED) called"); | 42 | NGLOG_WARNING(Service_Time, "(STUBBED) called"); |
| 43 | SystemClockContext system_clock_ontext{}; | 43 | SystemClockContext system_clock_ontext{}; |
| 44 | IPC::ResponseBuilder rb{ctx, (sizeof(SystemClockContext) / 4) + 2}; | 44 | IPC::ResponseBuilder rb{ctx, (sizeof(SystemClockContext) / 4) + 2}; |
| 45 | rb.Push(RESULT_SUCCESS); | 45 | rb.Push(RESULT_SUCCESS); |
| @@ -58,7 +58,7 @@ public: | |||
| 58 | 58 | ||
| 59 | private: | 59 | private: |
| 60 | void GetCurrentTimePoint(Kernel::HLERequestContext& ctx) { | 60 | void GetCurrentTimePoint(Kernel::HLERequestContext& ctx) { |
| 61 | LOG_DEBUG(Service_Time, "called"); | 61 | NGLOG_DEBUG(Service_Time, "called"); |
| 62 | SteadyClockTimePoint steady_clock_time_point{cyclesToMs(CoreTiming::GetTicks()) / 1000}; | 62 | SteadyClockTimePoint steady_clock_time_point{cyclesToMs(CoreTiming::GetTicks()) / 1000}; |
| 63 | IPC::ResponseBuilder rb{ctx, (sizeof(SteadyClockTimePoint) / 4) + 2}; | 63 | IPC::ResponseBuilder rb{ctx, (sizeof(SteadyClockTimePoint) / 4) + 2}; |
| 64 | rb.Push(RESULT_SUCCESS); | 64 | rb.Push(RESULT_SUCCESS); |
| @@ -86,7 +86,7 @@ public: | |||
| 86 | 86 | ||
| 87 | private: | 87 | private: |
| 88 | void GetDeviceLocationName(Kernel::HLERequestContext& ctx) { | 88 | void GetDeviceLocationName(Kernel::HLERequestContext& ctx) { |
| 89 | LOG_WARNING(Service_Time, "(STUBBED) called"); | 89 | NGLOG_WARNING(Service_Time, "(STUBBED) called"); |
| 90 | LocationName location_name{}; | 90 | LocationName location_name{}; |
| 91 | IPC::ResponseBuilder rb{ctx, (sizeof(LocationName) / 4) + 2}; | 91 | IPC::ResponseBuilder rb{ctx, (sizeof(LocationName) / 4) + 2}; |
| 92 | rb.Push(RESULT_SUCCESS); | 92 | rb.Push(RESULT_SUCCESS); |
| @@ -94,14 +94,14 @@ private: | |||
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | void GetTotalLocationNameCount(Kernel::HLERequestContext& ctx) { | 96 | void GetTotalLocationNameCount(Kernel::HLERequestContext& ctx) { |
| 97 | LOG_WARNING(Service_Time, "(STUBBED) called"); | 97 | NGLOG_WARNING(Service_Time, "(STUBBED) called"); |
| 98 | IPC::ResponseBuilder rb{ctx, 3}; | 98 | IPC::ResponseBuilder rb{ctx, 3}; |
| 99 | rb.Push(RESULT_SUCCESS); | 99 | rb.Push(RESULT_SUCCESS); |
| 100 | rb.Push<u32>(0); | 100 | rb.Push<u32>(0); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | void LoadTimeZoneRule(Kernel::HLERequestContext& ctx) { | 103 | void LoadTimeZoneRule(Kernel::HLERequestContext& ctx) { |
| 104 | LOG_WARNING(Service_Time, "(STUBBED) called"); | 104 | NGLOG_WARNING(Service_Time, "(STUBBED) called"); |
| 105 | IPC::ResponseBuilder rb{ctx, 2}; | 105 | IPC::ResponseBuilder rb{ctx, 2}; |
| 106 | rb.Push(RESULT_SUCCESS); | 106 | rb.Push(RESULT_SUCCESS); |
| 107 | } | 107 | } |
| @@ -110,7 +110,7 @@ private: | |||
| 110 | IPC::RequestParser rp{ctx}; | 110 | IPC::RequestParser rp{ctx}; |
| 111 | u64 posix_time = rp.Pop<u64>(); | 111 | u64 posix_time = rp.Pop<u64>(); |
| 112 | 112 | ||
| 113 | LOG_WARNING(Service_Time, "(STUBBED) called, posix_time=0x%016lX", posix_time); | 113 | NGLOG_WARNING(Service_Time, "(STUBBED) called, posix_time={:#018X}", posix_time); |
| 114 | 114 | ||
| 115 | CalendarTime calendar_time{2018, 1, 1, 0, 0, 0}; | 115 | CalendarTime calendar_time{2018, 1, 1, 0, 0, 0}; |
| 116 | CalendarAdditionalInfo additional_info{}; | 116 | CalendarAdditionalInfo additional_info{}; |
| @@ -125,35 +125,35 @@ void Module::Interface::GetStandardUserSystemClock(Kernel::HLERequestContext& ct | |||
| 125 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 125 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 126 | rb.Push(RESULT_SUCCESS); | 126 | rb.Push(RESULT_SUCCESS); |
| 127 | rb.PushIpcInterface<ISystemClock>(); | 127 | rb.PushIpcInterface<ISystemClock>(); |
| 128 | LOG_DEBUG(Service_Time, "called"); | 128 | NGLOG_DEBUG(Service_Time, "called"); |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx) { | 131 | void Module::Interface::GetStandardNetworkSystemClock(Kernel::HLERequestContext& ctx) { |
| 132 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 132 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 133 | rb.Push(RESULT_SUCCESS); | 133 | rb.Push(RESULT_SUCCESS); |
| 134 | rb.PushIpcInterface<ISystemClock>(); | 134 | rb.PushIpcInterface<ISystemClock>(); |
| 135 | LOG_DEBUG(Service_Time, "called"); | 135 | NGLOG_DEBUG(Service_Time, "called"); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | void Module::Interface::GetStandardSteadyClock(Kernel::HLERequestContext& ctx) { | 138 | void Module::Interface::GetStandardSteadyClock(Kernel::HLERequestContext& ctx) { |
| 139 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 139 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 140 | rb.Push(RESULT_SUCCESS); | 140 | rb.Push(RESULT_SUCCESS); |
| 141 | rb.PushIpcInterface<ISteadyClock>(); | 141 | rb.PushIpcInterface<ISteadyClock>(); |
| 142 | LOG_DEBUG(Service_Time, "called"); | 142 | NGLOG_DEBUG(Service_Time, "called"); |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) { | 145 | void Module::Interface::GetTimeZoneService(Kernel::HLERequestContext& ctx) { |
| 146 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 146 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 147 | rb.Push(RESULT_SUCCESS); | 147 | rb.Push(RESULT_SUCCESS); |
| 148 | rb.PushIpcInterface<ITimeZoneService>(); | 148 | rb.PushIpcInterface<ITimeZoneService>(); |
| 149 | LOG_DEBUG(Service_Time, "called"); | 149 | NGLOG_DEBUG(Service_Time, "called"); |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx) { | 152 | void Module::Interface::GetStandardLocalSystemClock(Kernel::HLERequestContext& ctx) { |
| 153 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 153 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 154 | rb.Push(RESULT_SUCCESS); | 154 | rb.Push(RESULT_SUCCESS); |
| 155 | rb.PushIpcInterface<ISystemClock>(); | 155 | rb.PushIpcInterface<ISystemClock>(); |
| 156 | LOG_DEBUG(Service_Time, "called"); | 156 | NGLOG_DEBUG(Service_Time, "called"); |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) | 159 | Module::Interface::Interface(std::shared_ptr<Module> time, const char* name) |