diff options
| author | 2019-06-15 16:47:13 -0400 | |
|---|---|---|
| committer | 2019-06-15 16:47:13 -0400 | |
| commit | c140b6ae2ca6bc318f47b74a6946ddb10d282dbe (patch) | |
| tree | 6407b0465b93a7cfc0a5733e0d8dd3bb26742a15 /src/core/hle | |
| parent | Merge pull request #2582 from lioncash/reserved (diff) | |
| parent | common/hex_util: Reserve std::string memory ahead of time (diff) | |
| download | yuzu-c140b6ae2ca6bc318f47b74a6946ddb10d282dbe.tar.gz yuzu-c140b6ae2ca6bc318f47b74a6946ddb10d282dbe.tar.xz yuzu-c140b6ae2ca6bc318f47b74a6946ddb10d282dbe.zip | |
Merge pull request #2581 from lioncash/hex
common/hex_util: Combine HexVectorToString() and HexArrayToString()
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/am/applets/general_backend.cpp | 12 | ||||
| -rw-r--r-- | src/core/hle/service/ldr/ldr.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/service/am/applets/general_backend.cpp b/src/core/hle/service/am/applets/general_backend.cpp index c591b9ac2..76fc8906d 100644 --- a/src/core/hle/service/am/applets/general_backend.cpp +++ b/src/core/hle/service/am/applets/general_backend.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <string> | 5 | #include <string_view> |
| 6 | 6 | ||
| 7 | #include "common/assert.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/hex_util.h" | 8 | #include "common/hex_util.h" |
| @@ -16,21 +16,21 @@ | |||
| 16 | 16 | ||
| 17 | namespace Service::AM::Applets { | 17 | namespace Service::AM::Applets { |
| 18 | 18 | ||
| 19 | static void LogCurrentStorage(AppletDataBroker& broker, std::string prefix) { | 19 | static void LogCurrentStorage(AppletDataBroker& broker, std::string_view prefix) { |
| 20 | std::unique_ptr<IStorage> storage = broker.PopNormalDataToApplet(); | 20 | std::unique_ptr<IStorage> storage = broker.PopNormalDataToApplet(); |
| 21 | for (; storage != nullptr; storage = broker.PopNormalDataToApplet()) { | 21 | for (; storage != nullptr; storage = broker.PopNormalDataToApplet()) { |
| 22 | const auto data = storage->GetData(); | 22 | const auto data = storage->GetData(); |
| 23 | LOG_INFO(Service_AM, | 23 | LOG_INFO(Service_AM, |
| 24 | "called (STUBBED), during {} recieved normal data with size={:08X}, data={}", | 24 | "called (STUBBED), during {} received normal data with size={:08X}, data={}", |
| 25 | prefix, data.size(), Common::HexVectorToString(data)); | 25 | prefix, data.size(), Common::HexToString(data)); |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | storage = broker.PopInteractiveDataToApplet(); | 28 | storage = broker.PopInteractiveDataToApplet(); |
| 29 | for (; storage != nullptr; storage = broker.PopInteractiveDataToApplet()) { | 29 | for (; storage != nullptr; storage = broker.PopInteractiveDataToApplet()) { |
| 30 | const auto data = storage->GetData(); | 30 | const auto data = storage->GetData(); |
| 31 | LOG_INFO(Service_AM, | 31 | LOG_INFO(Service_AM, |
| 32 | "called (STUBBED), during {} recieved interactive data with size={:08X}, data={}", | 32 | "called (STUBBED), during {} received interactive data with size={:08X}, data={}", |
| 33 | prefix, data.size(), Common::HexVectorToString(data)); | 33 | prefix, data.size(), Common::HexToString(data)); |
| 34 | } | 34 | } |
| 35 | } | 35 | } |
| 36 | 36 | ||
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp index 5af925515..b839303ac 100644 --- a/src/core/hle/service/ldr/ldr.cpp +++ b/src/core/hle/service/ldr/ldr.cpp | |||
| @@ -310,7 +310,7 @@ public: | |||
| 310 | if (!IsValidNROHash(hash)) { | 310 | if (!IsValidNROHash(hash)) { |
| 311 | LOG_ERROR(Service_LDR, | 311 | LOG_ERROR(Service_LDR, |
| 312 | "NRO hash is not present in any currently loaded NRRs (hash={})!", | 312 | "NRO hash is not present in any currently loaded NRRs (hash={})!", |
| 313 | Common::HexArrayToString(hash)); | 313 | Common::HexToString(hash)); |
| 314 | IPC::ResponseBuilder rb{ctx, 2}; | 314 | IPC::ResponseBuilder rb{ctx, 2}; |
| 315 | rb.Push(ERROR_MISSING_NRR_HASH); | 315 | rb.Push(ERROR_MISSING_NRR_HASH); |
| 316 | return; | 316 | return; |