summaryrefslogtreecommitdiff
path: root/src/core/file_sys
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/file_sys
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/file_sys')
-rw-r--r--src/core/file_sys/program_metadata.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp
index 1f5ded514..25a822891 100644
--- a/src/core/file_sys/program_metadata.cpp
+++ b/src/core/file_sys/program_metadata.cpp
@@ -77,11 +77,11 @@ u64 ProgramMetadata::GetFilesystemPermissions() const {
77 77
78void ProgramMetadata::Print() const { 78void ProgramMetadata::Print() const {
79 NGLOG_DEBUG(Service_FS, "Magic: {:.4}", npdm_header.magic.data()); 79 NGLOG_DEBUG(Service_FS, "Magic: {:.4}", npdm_header.magic.data());
80 NGLOG_DEBUG(Service_FS, "Main thread priority: {:#04X}", npdm_header.main_thread_priority); 80 NGLOG_DEBUG(Service_FS, "Main thread priority: 0x{:02X}", npdm_header.main_thread_priority);
81 NGLOG_DEBUG(Service_FS, "Main thread core: {}", npdm_header.main_thread_cpu); 81 NGLOG_DEBUG(Service_FS, "Main thread core: {}", npdm_header.main_thread_cpu);
82 NGLOG_DEBUG(Service_FS, "Main thread stack size: {:#X} bytes", npdm_header.main_stack_size); 82 NGLOG_DEBUG(Service_FS, "Main thread stack size: 0x{:X} bytes", npdm_header.main_stack_size);
83 NGLOG_DEBUG(Service_FS, "Process category: {}", npdm_header.process_category); 83 NGLOG_DEBUG(Service_FS, "Process category: {}", npdm_header.process_category);
84 NGLOG_DEBUG(Service_FS, "Flags: {:02X}", npdm_header.flags); 84 NGLOG_DEBUG(Service_FS, "Flags: 0x{:02X}", npdm_header.flags);
85 NGLOG_DEBUG(Service_FS, " > 64-bit instructions: {}", 85 NGLOG_DEBUG(Service_FS, " > 64-bit instructions: {}",
86 npdm_header.has_64_bit_instructions ? "YES" : "NO"); 86 npdm_header.has_64_bit_instructions ? "YES" : "NO");
87 87
@@ -99,15 +99,15 @@ void ProgramMetadata::Print() const {
99 99
100 // Begin ACID printing (potential perms, signed) 100 // Begin ACID printing (potential perms, signed)
101 NGLOG_DEBUG(Service_FS, "Magic: {:.4}", acid_header.magic.data()); 101 NGLOG_DEBUG(Service_FS, "Magic: {:.4}", acid_header.magic.data());
102 NGLOG_DEBUG(Service_FS, "Flags: {:02X}", acid_header.flags); 102 NGLOG_DEBUG(Service_FS, "Flags: 0x{:02X}", acid_header.flags);
103 NGLOG_DEBUG(Service_FS, " > Is Retail: {}", acid_header.is_retail ? "YES" : "NO"); 103 NGLOG_DEBUG(Service_FS, " > Is Retail: {}", acid_header.is_retail ? "YES" : "NO");
104 NGLOG_DEBUG(Service_FS, "Title ID Min: {:016X}", acid_header.title_id_min); 104 NGLOG_DEBUG(Service_FS, "Title ID Min: 0x{:016X}", acid_header.title_id_min);
105 NGLOG_DEBUG(Service_FS, "Title ID Max: {:016X}", acid_header.title_id_max); 105 NGLOG_DEBUG(Service_FS, "Title ID Max: 0x{:016X}", acid_header.title_id_max);
106 NGLOG_DEBUG(Service_FS, "Filesystem Access: {:016X}\n", acid_file_access.permissions); 106 NGLOG_DEBUG(Service_FS, "Filesystem Access: 0x{:016X}\n", acid_file_access.permissions);
107 107
108 // Begin ACI0 printing (actual perms, unsigned) 108 // Begin ACI0 printing (actual perms, unsigned)
109 NGLOG_DEBUG(Service_FS, "Magic: {:.4}", aci_header.magic.data()); 109 NGLOG_DEBUG(Service_FS, "Magic: {:.4}", aci_header.magic.data());
110 NGLOG_DEBUG(Service_FS, "Title ID: {:016X}", aci_header.title_id); 110 NGLOG_DEBUG(Service_FS, "Title ID: 0x{:016X}", aci_header.title_id);
111 NGLOG_DEBUG(Service_FS, "Filesystem Access: {:016X}\n", aci_file_access.permissions); 111 NGLOG_DEBUG(Service_FS, "Filesystem Access: 0x{:016X}\n", aci_file_access.permissions);
112} 112}
113} // namespace FileSys 113} // namespace FileSys