summaryrefslogtreecommitdiff
path: root/src/core/hle/service/service.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-05-02 09:14:28 -0400
committerGravatar Lioncash2018-05-02 09:49:36 -0400
commit7c9644646f595605036b9fe9e51c44716ee60fa3 (patch)
tree20f8f60d78ed7db5c76629d452ed196d43dc3e78 /src/core/hle/service/service.cpp
parentMerge pull request #429 from Subv/ioctl_corruption (diff)
downloadyuzu-7c9644646f595605036b9fe9e51c44716ee60fa3.tar.gz
yuzu-7c9644646f595605036b9fe9e51c44716ee60fa3.tar.xz
yuzu-7c9644646f595605036b9fe9e51c44716ee60fa3.zip
general: Make formatting of logged hex values more straightforward
This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on).
Diffstat (limited to 'src/core/hle/service/service.cpp')
-rw-r--r--src/core/hle/service/service.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 7a5f08b24..dc30702c6 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -60,7 +60,7 @@ static std::string MakeFunctionString(const char* name, const char* port_name,
60 60
61 std::string function_string = fmt::format("function '{}': port={}", name, port_name); 61 std::string function_string = fmt::format("function '{}': port={}", name, port_name);
62 for (int i = 1; i <= num_params; ++i) { 62 for (int i = 1; i <= num_params; ++i) {
63 function_string += fmt::format(", cmd_buff[{}]={:#X}", i, cmd_buff[i]); 63 function_string += fmt::format(", cmd_buff[{}]=0x{:X}", i, cmd_buff[i]);
64 } 64 }
65 return function_string; 65 return function_string;
66} 66}
@@ -113,10 +113,10 @@ void ServiceFrameworkBase::ReportUnimplementedFunction(Kernel::HLERequestContext
113 std::string function_name = info == nullptr ? fmt::format("{}", ctx.GetCommand()) : info->name; 113 std::string function_name = info == nullptr ? fmt::format("{}", ctx.GetCommand()) : info->name;
114 114
115 fmt::memory_buffer buf; 115 fmt::memory_buffer buf;
116 fmt::format_to(buf, "function '{}': port='{}' cmd_buf={{[0]={:#x}", function_name, service_name, 116 fmt::format_to(buf, "function '{}': port='{}' cmd_buf={{[0]=0x{:X}", function_name,
117 cmd_buf[0]); 117 service_name, cmd_buf[0]);
118 for (int i = 1; i <= 8; ++i) { 118 for (int i = 1; i <= 8; ++i) {
119 fmt::format_to(buf, ", [{}]={:#x}", i, cmd_buf[i]); 119 fmt::format_to(buf, ", [{}]=0x{:X}", i, cmd_buf[i]);
120 } 120 }
121 buf.push_back('}'); 121 buf.push_back('}');
122 122