diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/file_sys/archive_romfs.cpp | 2 | ||||
| -rw-r--r-- | src/core/file_sys/directory_sdmc.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/archive.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/svc.cpp | 6 | ||||
| -rw-r--r-- | src/core/hw/gpu.cpp | 4 | ||||
| -rw-r--r-- | src/core/hw/hw.cpp | 4 | ||||
| -rw-r--r-- | src/core/hw/ndma.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/clipper.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/command_processor.cpp | 2 |
9 files changed, 17 insertions, 17 deletions
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index 9bab3471f..f101fc729 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp | |||
| @@ -50,7 +50,7 @@ std::unique_ptr<Directory> Archive_RomFS::OpenDirectory(const std::string& path) | |||
| 50 | * @return Number of bytes read | 50 | * @return Number of bytes read |
| 51 | */ | 51 | */ |
| 52 | size_t Archive_RomFS::Read(const u64 offset, const u32 length, u8* buffer) const { | 52 | size_t Archive_RomFS::Read(const u64 offset, const u32 length, u8* buffer) const { |
| 53 | DEBUG_LOG(FILESYS, "called offset=%d, length=%d", offset, length); | 53 | DEBUG_LOG(FILESYS, "called offset=%llu, length=%d", offset, length); |
| 54 | memcpy(buffer, &raw_data[(u32)offset], length); | 54 | memcpy(buffer, &raw_data[(u32)offset], length); |
| 55 | return length; | 55 | return length; |
| 56 | } | 56 | } |
diff --git a/src/core/file_sys/directory_sdmc.cpp b/src/core/file_sys/directory_sdmc.cpp index 36951564d..fd558def9 100644 --- a/src/core/file_sys/directory_sdmc.cpp +++ b/src/core/file_sys/directory_sdmc.cpp | |||
| @@ -42,7 +42,7 @@ u32 Directory_SDMC::Read(const u32 count, Entry* entries) { | |||
| 42 | const std::string& filename = file.virtualName; | 42 | const std::string& filename = file.virtualName; |
| 43 | Entry& entry = entries[entries_read]; | 43 | Entry& entry = entries[entries_read]; |
| 44 | 44 | ||
| 45 | WARN_LOG(FILESYS, "File %s: size=%d dir=%d", filename.c_str(), file.size, file.isDirectory); | 45 | WARN_LOG(FILESYS, "File %s: size=%llu dir=%d", filename.c_str(), file.size, file.isDirectory); |
| 46 | 46 | ||
| 47 | // TODO(Link Mauve): use a proper conversion to UTF-16. | 47 | // TODO(Link Mauve): use a proper conversion to UTF-16. |
| 48 | for (int j = 0; j < FILENAME_LENGTH; ++j) { | 48 | for (int j = 0; j < FILENAME_LENGTH; ++j) { |
diff --git a/src/core/hle/kernel/archive.cpp b/src/core/hle/kernel/archive.cpp index 09b4e75a5..4a6140c71 100644 --- a/src/core/hle/kernel/archive.cpp +++ b/src/core/hle/kernel/archive.cpp | |||
| @@ -153,7 +153,7 @@ public: | |||
| 153 | u64 offset = cmd_buff[1] | ((u64) cmd_buff[2]) << 32; | 153 | u64 offset = cmd_buff[1] | ((u64) cmd_buff[2]) << 32; |
| 154 | u32 length = cmd_buff[3]; | 154 | u32 length = cmd_buff[3]; |
| 155 | u32 address = cmd_buff[5]; | 155 | u32 address = cmd_buff[5]; |
| 156 | DEBUG_LOG(KERNEL, "Read %s %s: offset=0x%x length=%d address=0x%x", | 156 | DEBUG_LOG(KERNEL, "Read %s %s: offset=0x%llx length=%d address=0x%x", |
| 157 | GetTypeName().c_str(), GetName().c_str(), offset, length, address); | 157 | GetTypeName().c_str(), GetName().c_str(), offset, length, address); |
| 158 | cmd_buff[2] = backend->Read(offset, length, Memory::GetPointer(address)); | 158 | cmd_buff[2] = backend->Read(offset, length, Memory::GetPointer(address)); |
| 159 | break; | 159 | break; |
| @@ -166,7 +166,7 @@ public: | |||
| 166 | u32 length = cmd_buff[3]; | 166 | u32 length = cmd_buff[3]; |
| 167 | u32 flush = cmd_buff[4]; | 167 | u32 flush = cmd_buff[4]; |
| 168 | u32 address = cmd_buff[6]; | 168 | u32 address = cmd_buff[6]; |
| 169 | DEBUG_LOG(KERNEL, "Write %s %s: offset=0x%x length=%d address=0x%x, flush=0x%x", | 169 | DEBUG_LOG(KERNEL, "Write %s %s: offset=0x%llx length=%d address=0x%x, flush=0x%x", |
| 170 | GetTypeName().c_str(), GetName().c_str(), offset, length, address, flush); | 170 | GetTypeName().c_str(), GetName().c_str(), offset, length, address, flush); |
| 171 | cmd_buff[2] = backend->Write(offset, length, flush, Memory::GetPointer(address)); | 171 | cmd_buff[2] = backend->Write(offset, length, flush, Memory::GetPointer(address)); |
| 172 | break; | 172 | break; |
| @@ -184,7 +184,7 @@ public: | |||
| 184 | case FileCommand::SetSize: | 184 | case FileCommand::SetSize: |
| 185 | { | 185 | { |
| 186 | u64 size = cmd_buff[1] | ((u64)cmd_buff[2] << 32); | 186 | u64 size = cmd_buff[1] | ((u64)cmd_buff[2] << 32); |
| 187 | DEBUG_LOG(KERNEL, "SetSize %s %s size=%d", GetTypeName().c_str(), GetName().c_str(), size); | 187 | DEBUG_LOG(KERNEL, "SetSize %s %s size=%llu", GetTypeName().c_str(), GetName().c_str(), size); |
| 188 | backend->SetSize(size); | 188 | backend->SetSize(size); |
| 189 | break; | 189 | break; |
| 190 | } | 190 | } |
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 490e05cde..1eda36c53 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -115,7 +115,7 @@ Result WaitSynchronization1(Handle handle, s64 nano_seconds) { | |||
| 115 | 115 | ||
| 116 | Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handle); | 116 | Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handle); |
| 117 | 117 | ||
| 118 | DEBUG_LOG(SVC, "called handle=0x%08X(%s:%s), nanoseconds=%d", handle, object->GetTypeName().c_str(), | 118 | DEBUG_LOG(SVC, "called handle=0x%08X(%s:%s), nanoseconds=%lld", handle, object->GetTypeName().c_str(), |
| 119 | object->GetName().c_str(), nano_seconds); | 119 | object->GetName().c_str(), nano_seconds); |
| 120 | 120 | ||
| 121 | _assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!"); | 121 | _assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!"); |
| @@ -138,7 +138,7 @@ Result WaitSynchronizationN(s32* out, Handle* handles, s32 handle_count, bool wa | |||
| 138 | bool unlock_all = true; | 138 | bool unlock_all = true; |
| 139 | bool wait_infinite = (nano_seconds == -1); // Used to wait until a thread has terminated | 139 | bool wait_infinite = (nano_seconds == -1); // Used to wait until a thread has terminated |
| 140 | 140 | ||
| 141 | DEBUG_LOG(SVC, "called handle_count=%d, wait_all=%s, nanoseconds=%d", | 141 | DEBUG_LOG(SVC, "called handle_count=%d, wait_all=%s, nanoseconds=%lld", |
| 142 | handle_count, (wait_all ? "true" : "false"), nano_seconds); | 142 | handle_count, (wait_all ? "true" : "false"), nano_seconds); |
| 143 | 143 | ||
| 144 | // Iterate through each handle, synchronize kernel object | 144 | // Iterate through each handle, synchronize kernel object |
| @@ -324,7 +324,7 @@ Result ClearEvent(Handle evt) { | |||
| 324 | 324 | ||
| 325 | /// Sleep the current thread | 325 | /// Sleep the current thread |
| 326 | void SleepThread(s64 nanoseconds) { | 326 | void SleepThread(s64 nanoseconds) { |
| 327 | DEBUG_LOG(SVC, "called nanoseconds=%d", nanoseconds); | 327 | DEBUG_LOG(SVC, "called nanoseconds=%lld", nanoseconds); |
| 328 | } | 328 | } |
| 329 | 329 | ||
| 330 | /// This returns the total CPU ticks elapsed since the CPU was powered-on | 330 | /// This returns the total CPU ticks elapsed since the CPU was powered-on |
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index 76dbe3fdc..14d3ee828 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -35,7 +35,7 @@ inline void Read(T &var, const u32 raw_addr) { | |||
| 35 | 35 | ||
| 36 | // Reads other than u32 are untested, so I'd rather have them abort than silently fail | 36 | // Reads other than u32 are untested, so I'd rather have them abort than silently fail |
| 37 | if (index >= Regs::NumIds() || !std::is_same<T,u32>::value) { | 37 | if (index >= Regs::NumIds() || !std::is_same<T,u32>::value) { |
| 38 | ERROR_LOG(GPU, "unknown Read%d @ 0x%08X", sizeof(var) * 8, addr); | 38 | ERROR_LOG(GPU, "unknown Read%lu @ 0x%08X", sizeof(var) * 8, addr); |
| 39 | return; | 39 | return; |
| 40 | } | 40 | } |
| 41 | 41 | ||
| @@ -49,7 +49,7 @@ inline void Write(u32 addr, const T data) { | |||
| 49 | 49 | ||
| 50 | // Writes other than u32 are untested, so I'd rather have them abort than silently fail | 50 | // Writes other than u32 are untested, so I'd rather have them abort than silently fail |
| 51 | if (index >= Regs::NumIds() || !std::is_same<T,u32>::value) { | 51 | if (index >= Regs::NumIds() || !std::is_same<T,u32>::value) { |
| 52 | ERROR_LOG(GPU, "unknown Write%d 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); | 52 | ERROR_LOG(GPU, "unknown Write%lu 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); |
| 53 | return; | 53 | return; |
| 54 | } | 54 | } |
| 55 | 55 | ||
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp index efd94f147..33f75c50a 100644 --- a/src/core/hw/hw.cpp +++ b/src/core/hw/hw.cpp | |||
| @@ -50,7 +50,7 @@ inline void Read(T &var, const u32 addr) { | |||
| 50 | break; | 50 | break; |
| 51 | 51 | ||
| 52 | default: | 52 | default: |
| 53 | ERROR_LOG(HW, "unknown Read%d @ 0x%08X", sizeof(var) * 8, addr); | 53 | ERROR_LOG(HW, "unknown Read%lu @ 0x%08X", sizeof(var) * 8, addr); |
| 54 | } | 54 | } |
| 55 | } | 55 | } |
| 56 | 56 | ||
| @@ -68,7 +68,7 @@ inline void Write(u32 addr, const T data) { | |||
| 68 | break; | 68 | break; |
| 69 | 69 | ||
| 70 | default: | 70 | default: |
| 71 | ERROR_LOG(HW, "unknown Write%d 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); | 71 | ERROR_LOG(HW, "unknown Write%lu 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); |
| 72 | } | 72 | } |
| 73 | } | 73 | } |
| 74 | 74 | ||
diff --git a/src/core/hw/ndma.cpp b/src/core/hw/ndma.cpp index 158241fd6..e29a773f1 100644 --- a/src/core/hw/ndma.cpp +++ b/src/core/hw/ndma.cpp | |||
| @@ -10,12 +10,12 @@ namespace NDMA { | |||
| 10 | 10 | ||
| 11 | template <typename T> | 11 | template <typename T> |
| 12 | inline void Read(T &var, const u32 addr) { | 12 | inline void Read(T &var, const u32 addr) { |
| 13 | ERROR_LOG(NDMA, "unknown Read%d @ 0x%08X", sizeof(var) * 8, addr); | 13 | ERROR_LOG(NDMA, "unknown Read%lu @ 0x%08X", sizeof(var) * 8, addr); |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | template <typename T> | 16 | template <typename T> |
| 17 | inline void Write(u32 addr, const T data) { | 17 | inline void Write(u32 addr, const T data) { |
| 18 | ERROR_LOG(NDMA, "unknown Write%d 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); | 18 | ERROR_LOG(NDMA, "unknown Write%lu 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | // Explicitly instantiate template functions because we aren't defining this in the header: | 21 | // Explicitly instantiate template functions because we aren't defining this in the header: |
diff --git a/src/video_core/clipper.cpp b/src/video_core/clipper.cpp index 2cf166afd..96d3dabe2 100644 --- a/src/video_core/clipper.cpp +++ b/src/video_core/clipper.cpp | |||
| @@ -158,8 +158,8 @@ void ProcessTriangle(OutputVertex &v0, OutputVertex &v1, OutputVertex &v2) { | |||
| 158 | InitScreenCoordinates(vtx2); | 158 | InitScreenCoordinates(vtx2); |
| 159 | 159 | ||
| 160 | DEBUG_LOG(GPU, | 160 | DEBUG_LOG(GPU, |
| 161 | "Triangle %u/%u (%u buffer vertices) at position (%.3f, %.3f, %.3f, %.3f), " | 161 | "Triangle %lu/%lu (%lu buffer vertices) at position (%.3f, %.3f, %.3f, %.3f), " |
| 162 | "(%.3f, %.3f, %.3f, %.3f), (%.3f, %.3f, %.3f, %.3f) and " | 162 | "(%.3lu, %.3f, %.3f, %.3f), (%.3f, %.3f, %.3f, %.3f) and " |
| 163 | "screen position (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f)", | 163 | "screen position (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f), (%.2f, %.2f, %.2f)", |
| 164 | i,output_list.size(), buffer_vertices.size(), | 164 | i,output_list.size(), buffer_vertices.size(), |
| 165 | vtx0.pos.x.ToFloat32(), vtx0.pos.y.ToFloat32(), vtx0.pos.z.ToFloat32(), vtx0.pos.w.ToFloat32(),output_list.size(), | 165 | vtx0.pos.x.ToFloat32(), vtx0.pos.y.ToFloat32(), vtx0.pos.z.ToFloat32(), vtx0.pos.w.ToFloat32(),output_list.size(), |
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index a9510fa2e..1ec727698 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp | |||
| @@ -102,7 +102,7 @@ static inline void WritePicaReg(u32 id, u32 value, u32 mask) { | |||
| 102 | (vertex_attribute_formats[i] == 2) ? *(s16*)srcdata : | 102 | (vertex_attribute_formats[i] == 2) ? *(s16*)srcdata : |
| 103 | *(float*)srcdata; | 103 | *(float*)srcdata; |
| 104 | input.attr[i][comp] = float24::FromFloat32(srcval); | 104 | input.attr[i][comp] = float24::FromFloat32(srcval); |
| 105 | DEBUG_LOG(GPU, "Loaded component %x of attribute %x for vertex %x (index %x) from 0x%08x + 0x%08x + 0x%04x: %f", | 105 | DEBUG_LOG(GPU, "Loaded component %x of attribute %x for vertex %x (index %x) from 0x%08x + 0x%08lx + 0x%04lx: %f", |
| 106 | comp, i, vertex, index, | 106 | comp, i, vertex, index, |
| 107 | attribute_config.GetBaseAddress(), | 107 | attribute_config.GetBaseAddress(), |
| 108 | vertex_attribute_sources[i] - base_address, | 108 | vertex_attribute_sources[i] - base_address, |