diff options
| author | 2018-04-29 21:49:13 -0400 | |
|---|---|---|
| committer | 2018-04-29 21:49:13 -0400 | |
| commit | 81a0082f6bd4f2db9b09e56cce96351bb5084e46 (patch) | |
| tree | 4309e2b742d485f9854bbe63de4393f7e8785f5c /src/core | |
| parent | Merge pull request #422 from bunnei/shader-mov (diff) | |
| parent | string_util: Remove StringFromFormat() and related functions (diff) | |
| download | yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar.gz yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.tar.xz yuzu-81a0082f6bd4f2db9b09e56cce96351bb5084e46.zip | |
Merge pull request #424 from lioncash/string
string_util: Remove StringFromFormat() and related functions
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 4df38c977..e2da68227 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -510,7 +510,7 @@ static void ExitProcess() { | |||
| 510 | /// Creates a new thread | 510 | /// Creates a new thread |
| 511 | static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, VAddr stack_top, | 511 | static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, VAddr stack_top, |
| 512 | u32 priority, s32 processor_id) { | 512 | u32 priority, s32 processor_id) { |
| 513 | std::string name = Common::StringFromFormat("unknown-%llx", entry_point); | 513 | std::string name = fmt::format("unknown-{:X}", entry_point); |
| 514 | 514 | ||
| 515 | if (priority > THREADPRIO_LOWEST) { | 515 | if (priority > THREADPRIO_LOWEST) { |
| 516 | return ERR_OUT_OF_RANGE; | 516 | return ERR_OUT_OF_RANGE; |
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 94de21ae1..7a5f08b24 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -58,10 +58,9 @@ static std::string MakeFunctionString(const char* name, const char* port_name, | |||
| 58 | // Number of params == bits 0-5 + bits 6-11 | 58 | // Number of params == bits 0-5 + bits 6-11 |
| 59 | int num_params = (cmd_buff[0] & 0x3F) + ((cmd_buff[0] >> 6) & 0x3F); | 59 | int num_params = (cmd_buff[0] & 0x3F) + ((cmd_buff[0] >> 6) & 0x3F); |
| 60 | 60 | ||
| 61 | std::string function_string = | 61 | std::string function_string = fmt::format("function '{}': port={}", name, port_name); |
| 62 | Common::StringFromFormat("function '%s': port=%s", name, port_name); | ||
| 63 | for (int i = 1; i <= num_params; ++i) { | 62 | for (int i = 1; i <= num_params; ++i) { |
| 64 | function_string += Common::StringFromFormat(", cmd_buff[%i]=0x%X", i, cmd_buff[i]); | 63 | function_string += fmt::format(", cmd_buff[{}]={:#X}", i, cmd_buff[i]); |
| 65 | } | 64 | } |
| 66 | return function_string; | 65 | return function_string; |
| 67 | } | 66 | } |