diff options
| author | Léo Lam <leo@leolam.fr> | 2020-10-23 19:59:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 19:59:22 +0200 |
| commit | ce6eda7c717c1dad7d79b91ec421c196ac969357 (patch) | |
| tree | 873d58f4d200391135106b5e459b8d45cf47332c /Source/Core/InputCommon/GCAdapter_Android.cpp | |
| parent | 87e4a0785addc5c0e4eb04cb7cf8d93c551d34fc (diff) | |
| parent | a5e1415e74ce5b6b2a339256aa3e97748a3a2484 (diff) | |
Merge pull request #9184 from lioncash/inputlog
InputCommon: Migrate logging over to fmt
Diffstat (limited to 'Source/Core/InputCommon/GCAdapter_Android.cpp')
| -rw-r--r-- | Source/Core/InputCommon/GCAdapter_Android.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/Core/InputCommon/GCAdapter_Android.cpp b/Source/Core/InputCommon/GCAdapter_Android.cpp index 77ba4be322..a2b169abda 100644 --- a/Source/Core/InputCommon/GCAdapter_Android.cpp +++ b/Source/Core/InputCommon/GCAdapter_Android.cpp @@ -64,7 +64,7 @@ static u64 s_last_init = 0; static void ScanThreadFunc() { Common::SetCurrentThreadName("GC Adapter Scanning Thread"); - NOTICE_LOG(SERIALINTERFACE, "GC Adapter scanning thread started"); + NOTICE_LOG_FMT(SERIALINTERFACE, "GC Adapter scanning thread started"); JNIEnv* env = IDCache::GetEnvForThread(); @@ -78,13 +78,13 @@ static void ScanThreadFunc() Common::SleepCurrentThread(1000); } - NOTICE_LOG(SERIALINTERFACE, "GC Adapter scanning thread stopped"); + NOTICE_LOG_FMT(SERIALINTERFACE, "GC Adapter scanning thread stopped"); } static void Write() { Common::SetCurrentThreadName("GC Adapter Write Thread"); - NOTICE_LOG(SERIALINTERFACE, "GC Adapter write thread started"); + NOTICE_LOG_FMT(SERIALINTERFACE, "GC Adapter write thread started"); JNIEnv* env = IDCache::GetEnvForThread(); jmethodID output_func = env->GetStaticMethodID(s_adapter_class, "Output", "([B)I"); @@ -108,7 +108,7 @@ static void Write() // Netplay sends invalid data which results in size = 0x00. Ignore it. if (size != write_size && size != 0x00) { - ERROR_LOG(SERIALINTERFACE, "error writing rumble (size: %d)", size); + ERROR_LOG_FMT(SERIALINTERFACE, "error writing rumble (size: {})", size); Reset(); } } @@ -116,13 +116,13 @@ static void Write() Common::YieldCPU(); } - NOTICE_LOG(SERIALINTERFACE, "GC Adapter write thread stopped"); + NOTICE_LOG_FMT(SERIALINTERFACE, "GC Adapter write thread stopped"); } static void Read() { Common::SetCurrentThreadName("GC Adapter Read Thread"); - NOTICE_LOG(SERIALINTERFACE, "GC Adapter read thread started"); + NOTICE_LOG_FMT(SERIALINTERFACE, "GC Adapter read thread started"); bool first_read = true; JNIEnv* env = IDCache::GetEnvForThread(); @@ -179,7 +179,7 @@ static void Read() s_fd = 0; s_detected = false; - NOTICE_LOG(SERIALINTERFACE, "GC Adapter read thread stopped"); + NOTICE_LOG_FMT(SERIALINTERFACE, "GC Adapter read thread stopped"); } void Init() @@ -229,7 +229,7 @@ static void Reset() s_detected = false; s_fd = 0; - NOTICE_LOG(SERIALINTERFACE, "GC Adapter detached"); + NOTICE_LOG_FMT(SERIALINTERFACE, "GC Adapter detached"); } void Shutdown() @@ -270,8 +270,8 @@ GCPadStatus Input(int chan) GCPadStatus pad = {}; if (payload_size != controller_payload_copy.size()) { - ERROR_LOG(SERIALINTERFACE, "error reading payload (size: %d, type: %02x)", payload_size, - controller_payload_copy[0]); + ERROR_LOG_FMT(SERIALINTERFACE, "error reading payload (size: {}, type: {:02x})", payload_size, + controller_payload_copy[0]); Reset(); } else @@ -281,8 +281,8 @@ GCPadStatus Input(int chan) if (type != ControllerTypes::CONTROLLER_NONE && s_controller_type[chan] == ControllerTypes::CONTROLLER_NONE) { - ERROR_LOG(SERIALINTERFACE, "New device connected to Port %d of Type: %02x", chan + 1, - controller_payload_copy[1 + (9 * chan)]); + ERROR_LOG_FMT(SERIALINTERFACE, "New device connected to Port {} of Type: {:02x}", chan + 1, + controller_payload_copy[1 + (9 * chan)]); get_origin = true; } |
