diff options
| author | 2018-04-26 14:46:54 -0400 | |
|---|---|---|
| committer | 2018-04-26 15:37:16 -0400 | |
| commit | c33755e2b993c30b68920a578af9c9d0f5fbdc2f (patch) | |
| tree | ff0d274c8b1305610162f691f9d32088045b8f58 /src/core/telemetry_session.cpp | |
| parent | Merge pull request #401 from lioncash/gdbstub (diff) | |
| download | yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar.gz yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.tar.xz yuzu-c33755e2b993c30b68920a578af9c9d0f5fbdc2f.zip | |
core: Replace remaining old non-generic logger usages with fmt-capable equivalents
LOG_GENERIC usages will be amended in a follow-up to keep API changes separate from
interface changes, as it will require removing a parameter from the relevant function
in the VMManager class.
Diffstat (limited to 'src/core/telemetry_session.cpp')
| -rw-r--r-- | src/core/telemetry_session.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index cecf0a5cb..02c52bb55 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp | |||
| @@ -42,14 +42,14 @@ u64 GetTelemetryId() { | |||
| 42 | if (FileUtil::Exists(filename)) { | 42 | if (FileUtil::Exists(filename)) { |
| 43 | FileUtil::IOFile file(filename, "rb"); | 43 | FileUtil::IOFile file(filename, "rb"); |
| 44 | if (!file.IsOpen()) { | 44 | if (!file.IsOpen()) { |
| 45 | LOG_ERROR(Core, "failed to open telemetry_id: %s", filename.c_str()); | 45 | NGLOG_ERROR(Core, "failed to open telemetry_id: {}", filename); |
| 46 | return {}; | 46 | return {}; |
| 47 | } | 47 | } |
| 48 | file.ReadBytes(&telemetry_id, sizeof(u64)); | 48 | file.ReadBytes(&telemetry_id, sizeof(u64)); |
| 49 | } else { | 49 | } else { |
| 50 | FileUtil::IOFile file(filename, "wb"); | 50 | FileUtil::IOFile file(filename, "wb"); |
| 51 | if (!file.IsOpen()) { | 51 | if (!file.IsOpen()) { |
| 52 | LOG_ERROR(Core, "failed to open telemetry_id: %s", filename.c_str()); | 52 | NGLOG_ERROR(Core, "failed to open telemetry_id: {}", filename); |
| 53 | return {}; | 53 | return {}; |
| 54 | } | 54 | } |
| 55 | telemetry_id = GenerateTelemetryId(); | 55 | telemetry_id = GenerateTelemetryId(); |
| @@ -65,7 +65,7 @@ u64 RegenerateTelemetryId() { | |||
| 65 | 65 | ||
| 66 | FileUtil::IOFile file(filename, "wb"); | 66 | FileUtil::IOFile file(filename, "wb"); |
| 67 | if (!file.IsOpen()) { | 67 | if (!file.IsOpen()) { |
| 68 | LOG_ERROR(Core, "failed to open telemetry_id: %s", filename.c_str()); | 68 | NGLOG_ERROR(Core, "failed to open telemetry_id: {}", filename); |
| 69 | return {}; | 69 | return {}; |
| 70 | } | 70 | } |
| 71 | file.WriteBytes(&new_telemetry_id, sizeof(u64)); | 71 | file.WriteBytes(&new_telemetry_id, sizeof(u64)); |