summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/arm/unicorn/arm_unicorn.cpp2
-rw-r--r--src/core/core.cpp5
-rw-r--r--src/core/gdbstub/gdbstub.cpp2
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp2
-rw-r--r--src/core/hle/kernel/object_address_table.cpp4
-rw-r--r--src/core/hle/kernel/server_session.cpp3
-rw-r--r--src/core/hle/kernel/shared_memory.cpp13
-rw-r--r--src/core/hle/kernel/svc.cpp4
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp6
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp4
-rw-r--r--src/core/hle/service/service.cpp2
-rw-r--r--src/core/hle/service/time/time.cpp2
-rw-r--r--src/core/hle/service/vi/vi.cpp2
-rw-r--r--src/core/loader/linker.cpp2
-rw-r--r--src/video_core/engines/maxwell_3d.cpp3
15 files changed, 29 insertions, 27 deletions
diff --git a/src/core/arm/unicorn/arm_unicorn.cpp b/src/core/arm/unicorn/arm_unicorn.cpp
index bd98cb160..b0cdc2403 100644
--- a/src/core/arm/unicorn/arm_unicorn.cpp
+++ b/src/core/arm/unicorn/arm_unicorn.cpp
@@ -53,7 +53,7 @@ static bool UnmappedMemoryHook(uc_engine* uc, uc_mem_type type, u64 addr, int si
53 void* user_data) { 53 void* user_data) {
54 ARM_Interface::ThreadContext ctx{}; 54 ARM_Interface::ThreadContext ctx{};
55 Core::CPU().SaveContext(ctx); 55 Core::CPU().SaveContext(ctx);
56 ASSERT_MSG(false, "Attempted to read from unmapped memory: 0x%llx, pc=0x%llx, lr=0x%llx", addr, 56 ASSERT_MSG(false, "Attempted to read from unmapped memory: 0x%lx, pc=0x%lx, lr=0x%lx", addr,
57 ctx.pc, ctx.cpu_registers[30]); 57 ctx.pc, ctx.cpu_registers[30]);
58 return {}; 58 return {};
59} 59}
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 183c5109c..d55621de8 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -99,14 +99,15 @@ System::ResultStatus System::Load(EmuWindow* emu_window, const std::string& file
99 99
100 ResultStatus init_result{Init(emu_window, system_mode.first.get())}; 100 ResultStatus init_result{Init(emu_window, system_mode.first.get())};
101 if (init_result != ResultStatus::Success) { 101 if (init_result != ResultStatus::Success) {
102 LOG_CRITICAL(Core, "Failed to initialize system (Error %i)!", init_result); 102 LOG_CRITICAL(Core, "Failed to initialize system (Error %i)!",
103 static_cast<int>(init_result));
103 System::Shutdown(); 104 System::Shutdown();
104 return init_result; 105 return init_result;
105 } 106 }
106 107
107 const Loader::ResultStatus load_result{app_loader->Load(current_process)}; 108 const Loader::ResultStatus load_result{app_loader->Load(current_process)};
108 if (Loader::ResultStatus::Success != load_result) { 109 if (Loader::ResultStatus::Success != load_result) {
109 LOG_CRITICAL(Core, "Failed to load ROM (Error %i)!", load_result); 110 LOG_CRITICAL(Core, "Failed to load ROM (Error %i)!", static_cast<int>(load_result));
110 System::Shutdown(); 111 System::Shutdown();
111 112
112 switch (load_result) { 113 switch (load_result) {
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index 7a142dc21..e4f337a0a 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -693,7 +693,7 @@ static void ReadMemory() {
693 u64 len = 693 u64 len =
694 HexToLong(start_offset, static_cast<u64>((command_buffer + command_length) - start_offset)); 694 HexToLong(start_offset, static_cast<u64>((command_buffer + command_length) - start_offset));
695 695
696 LOG_DEBUG(Debug_GDBStub, "gdb: addr: %016llx len: %016llx\n", addr, len); 696 LOG_DEBUG(Debug_GDBStub, "gdb: addr: %016lx len: %016lx\n", addr, len);
697 697
698 if (len * 2 > sizeof(reply)) { 698 if (len * 2 > sizeof(reply)) {
699 SendReply("E01"); 699 SendReply("E01");
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
index 293756790..ffcbfe64f 100644
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ b/src/core/hle/kernel/hle_ipc.cpp
@@ -269,7 +269,7 @@ std::vector<u8> HLERequestContext::ReadBuffer() const {
269size_t HLERequestContext::WriteBuffer(const void* buffer, size_t size) const { 269size_t HLERequestContext::WriteBuffer(const void* buffer, size_t size) const {
270 const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()}; 270 const bool is_buffer_b{BufferDescriptorB().size() && BufferDescriptorB()[0].Size()};
271 271
272 ASSERT_MSG(size <= GetWriteBufferSize(), "Size %d is too big", size); 272 ASSERT_MSG(size <= GetWriteBufferSize(), "Size %lx is too big", size);
273 273
274 if (is_buffer_b) { 274 if (is_buffer_b) {
275 Memory::WriteBlock(BufferDescriptorB()[0].Address(), buffer, size); 275 Memory::WriteBlock(BufferDescriptorB()[0].Address(), buffer, size);
diff --git a/src/core/hle/kernel/object_address_table.cpp b/src/core/hle/kernel/object_address_table.cpp
index 434c16add..cd286f85d 100644
--- a/src/core/hle/kernel/object_address_table.cpp
+++ b/src/core/hle/kernel/object_address_table.cpp
@@ -10,12 +10,12 @@ namespace Kernel {
10ObjectAddressTable g_object_address_table; 10ObjectAddressTable g_object_address_table;
11 11
12void ObjectAddressTable::Insert(VAddr addr, SharedPtr<Object> obj) { 12void ObjectAddressTable::Insert(VAddr addr, SharedPtr<Object> obj) {
13 ASSERT_MSG(objects.find(addr) == objects.end(), "Object already exists with addr=0x%llx", addr); 13 ASSERT_MSG(objects.find(addr) == objects.end(), "Object already exists with addr=0x%lx", addr);
14 objects[addr] = obj; 14 objects[addr] = obj;
15} 15}
16 16
17void ObjectAddressTable::Close(VAddr addr) { 17void ObjectAddressTable::Close(VAddr addr) {
18 ASSERT_MSG(objects.find(addr) != objects.end(), "Object does not exist with addr=0x%llx", addr); 18 ASSERT_MSG(objects.find(addr) != objects.end(), "Object does not exist with addr=0x%lx", addr);
19 objects.erase(addr); 19 objects.erase(addr);
20} 20}
21 21
diff --git a/src/core/hle/kernel/server_session.cpp b/src/core/hle/kernel/server_session.cpp
index 9b4a0ef0a..33397d84f 100644
--- a/src/core/hle/kernel/server_session.cpp
+++ b/src/core/hle/kernel/server_session.cpp
@@ -78,7 +78,8 @@ ResultCode ServerSession::HandleDomainSyncRequest(Kernel::HLERequestContext& con
78 } 78 }
79 } 79 }
80 80
81 LOG_CRITICAL(IPC, "Unknown domain command=%d", domain_message_header->command.Value()); 81 LOG_CRITICAL(IPC, "Unknown domain command=%d",
82 static_cast<int>(domain_message_header->command.Value()));
82 ASSERT(false); 83 ASSERT(false);
83 } 84 }
84 85
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp
index 4d6cd7462..88230bdd9 100644
--- a/src/core/hle/kernel/shared_memory.cpp
+++ b/src/core/hle/kernel/shared_memory.cpp
@@ -107,7 +107,7 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
107 107
108 // Error out if the requested permissions don't match what the creator process allows. 108 // Error out if the requested permissions don't match what the creator process allows.
109 if (static_cast<u32>(permissions) & ~static_cast<u32>(own_other_permissions)) { 109 if (static_cast<u32>(permissions) & ~static_cast<u32>(own_other_permissions)) {
110 LOG_ERROR(Kernel, "cannot map id=%u, address=0x%llx name=%s, permissions don't match", 110 LOG_ERROR(Kernel, "cannot map id=%u, address=0x%lx name=%s, permissions don't match",
111 GetObjectId(), address, name.c_str()); 111 GetObjectId(), address, name.c_str());
112 return ERR_INVALID_COMBINATION; 112 return ERR_INVALID_COMBINATION;
113 } 113 }
@@ -115,7 +115,7 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
115 // Error out if the provided permissions are not compatible with what the creator process needs. 115 // Error out if the provided permissions are not compatible with what the creator process needs.
116 if (other_permissions != MemoryPermission::DontCare && 116 if (other_permissions != MemoryPermission::DontCare &&
117 static_cast<u32>(this->permissions) & ~static_cast<u32>(other_permissions)) { 117 static_cast<u32>(this->permissions) & ~static_cast<u32>(other_permissions)) {
118 LOG_ERROR(Kernel, "cannot map id=%u, address=0x%llx name=%s, permissions don't match", 118 LOG_ERROR(Kernel, "cannot map id=%u, address=0x%lx name=%s, permissions don't match",
119 GetObjectId(), address, name.c_str()); 119 GetObjectId(), address, name.c_str());
120 return ERR_WRONG_PERMISSION; 120 return ERR_WRONG_PERMISSION;
121 } 121 }
@@ -126,7 +126,7 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
126 if (address != 0) { 126 if (address != 0) {
127 // TODO(shinyquagsire23): Check for virtual/mappable memory here too? 127 // TODO(shinyquagsire23): Check for virtual/mappable memory here too?
128 if (address >= Memory::HEAP_VADDR && address < Memory::HEAP_VADDR_END) { 128 if (address >= Memory::HEAP_VADDR && address < Memory::HEAP_VADDR_END) {
129 LOG_ERROR(Kernel, "cannot map id=%u, address=0x%llx name=%s, invalid address", 129 LOG_ERROR(Kernel, "cannot map id=%u, address=0x%lx name=%s, invalid address",
130 GetObjectId(), address, name.c_str()); 130 GetObjectId(), address, name.c_str());
131 return ERR_INVALID_ADDRESS; 131 return ERR_INVALID_ADDRESS;
132 } 132 }
@@ -143,10 +143,9 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
143 auto result = target_process->vm_manager.MapMemoryBlock( 143 auto result = target_process->vm_manager.MapMemoryBlock(
144 target_address, backing_block, backing_block_offset, size, MemoryState::Shared); 144 target_address, backing_block, backing_block_offset, size, MemoryState::Shared);
145 if (result.Failed()) { 145 if (result.Failed()) {
146 LOG_ERROR( 146 LOG_ERROR(Kernel,
147 Kernel, 147 "cannot map id=%u, target_address=0x%lx name=%s, error mapping to virtual memory",
148 "cannot map id=%u, target_address=0x%llx name=%s, error mapping to virtual memory", 148 GetObjectId(), target_address, name.c_str());
149 GetObjectId(), target_address, name.c_str());
150 return result.Code(); 149 return result.Code();
151 } 150 }
152 151
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 118ce3ee5..311ab4187 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -39,7 +39,7 @@ static ResultCode SetHeapSize(VAddr* heap_addr, u64 heap_size) {
39} 39}
40 40
41static ResultCode SetMemoryAttribute(VAddr addr, u64 size, u32 state0, u32 state1) { 41static ResultCode SetMemoryAttribute(VAddr addr, u64 size, u32 state0, u32 state1) {
42 LOG_WARNING(Kernel_SVC, "(STUBBED) called, addr=0x%llx", addr); 42 LOG_WARNING(Kernel_SVC, "(STUBBED) called, addr=0x%lx", addr);
43 return RESULT_SUCCESS; 43 return RESULT_SUCCESS;
44} 44}
45 45
@@ -750,7 +750,7 @@ static ResultCode ResetSignal(Handle handle) {
750 750
751/// Creates a TransferMemory object 751/// Creates a TransferMemory object
752static ResultCode CreateTransferMemory(Handle* handle, VAddr addr, u64 size, u32 permissions) { 752static ResultCode CreateTransferMemory(Handle* handle, VAddr addr, u64 size, u32 permissions) {
753 LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x%llx, size=0x%llx, perms=%08X", addr, size, 753 LOG_WARNING(Kernel_SVC, "(STUBBED) called addr=0x%lx, size=0x%lx, perms=%08X", addr, size,
754 permissions); 754 permissions);
755 *handle = 0; 755 *handle = 0;
756 return RESULT_SUCCESS; 756 return RESULT_SUCCESS;
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp
index 97b3fa290..e5ce41671 100644
--- a/src/core/hle/service/filesystem/fsp_srv.cpp
+++ b/src/core/hle/service/filesystem/fsp_srv.cpp
@@ -35,7 +35,7 @@ private:
35 const s64 offset = rp.Pop<s64>(); 35 const s64 offset = rp.Pop<s64>();
36 const s64 length = rp.Pop<s64>(); 36 const s64 length = rp.Pop<s64>();
37 37
38 LOG_DEBUG(Service_FS, "called, offset=0x%llx, length=0x%llx", offset, length); 38 LOG_DEBUG(Service_FS, "called, offset=0x%ld, length=0x%ld", offset, length);
39 39
40 // Error checking 40 // Error checking
41 if (length < 0) { 41 if (length < 0) {
@@ -86,7 +86,7 @@ private:
86 const s64 offset = rp.Pop<s64>(); 86 const s64 offset = rp.Pop<s64>();
87 const s64 length = rp.Pop<s64>(); 87 const s64 length = rp.Pop<s64>();
88 88
89 LOG_DEBUG(Service_FS, "called, offset=0x%llx, length=0x%llx", offset, length); 89 LOG_DEBUG(Service_FS, "called, offset=0x%ld, length=0x%ld", offset, length);
90 90
91 // Error checking 91 // Error checking
92 if (length < 0) { 92 if (length < 0) {
@@ -123,7 +123,7 @@ private:
123 const s64 offset = rp.Pop<s64>(); 123 const s64 offset = rp.Pop<s64>();
124 const s64 length = rp.Pop<s64>(); 124 const s64 length = rp.Pop<s64>();
125 125
126 LOG_DEBUG(Service_FS, "called, offset=0x%llx, length=0x%llx", offset, length); 126 LOG_DEBUG(Service_FS, "called, offset=0x%ld, length=0x%ld", offset, length);
127 127
128 // Error checking 128 // Error checking
129 if (length < 0) { 129 if (length < 0) {
diff --git a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
index 7674d332d..94530724e 100644
--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
@@ -23,8 +23,8 @@ void nvdisp_disp0::flip(u32 buffer_handle, u32 offset, u32 format, u32 width, u3
23 u32 stride, NVFlinger::BufferQueue::BufferTransformFlags transform) { 23 u32 stride, NVFlinger::BufferQueue::BufferTransformFlags transform) {
24 VAddr addr = nvmap_dev->GetObjectAddress(buffer_handle); 24 VAddr addr = nvmap_dev->GetObjectAddress(buffer_handle);
25 LOG_WARNING(Service, 25 LOG_WARNING(Service,
26 "Drawing from address %llx offset %08X Width %u Height %u Stride %u Format %u", 26 "Drawing from address %lx offset %08X Width %u Height %u Stride %u Format %u", addr,
27 addr, offset, width, height, stride, format); 27 offset, width, height, stride, format);
28 28
29 using PixelFormat = RendererBase::FramebufferInfo::PixelFormat; 29 using PixelFormat = RendererBase::FramebufferInfo::PixelFormat;
30 using Flags = NVFlinger::BufferQueue::BufferTransformFlags; 30 using Flags = NVFlinger::BufferQueue::BufferTransformFlags;
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index a1ca8a033..d4b08aadf 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -149,7 +149,7 @@ ResultCode ServiceFrameworkBase::HandleSyncRequest(Kernel::HLERequestContext& co
149 break; 149 break;
150 } 150 }
151 default: 151 default:
152 UNIMPLEMENTED_MSG("command_type=%d", context.GetCommandType()); 152 UNIMPLEMENTED_MSG("command_type=%d", static_cast<int>(context.GetCommandType()));
153 } 153 }
154 154
155 context.WriteToOutgoingCommandBuffer(*Kernel::GetCurrentThread()); 155 context.WriteToOutgoingCommandBuffer(*Kernel::GetCurrentThread());
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp
index ad49f4265..c3e46f866 100644
--- a/src/core/hle/service/time/time.cpp
+++ b/src/core/hle/service/time/time.cpp
@@ -107,7 +107,7 @@ private:
107 IPC::RequestParser rp{ctx}; 107 IPC::RequestParser rp{ctx};
108 u64 posix_time = rp.Pop<u64>(); 108 u64 posix_time = rp.Pop<u64>();
109 109
110 LOG_WARNING(Service_Time, "(STUBBED) called, posix_time=0x%016llX", posix_time); 110 LOG_WARNING(Service_Time, "(STUBBED) called, posix_time=0x%016lX", posix_time);
111 111
112 CalendarTime calendar_time{2018, 1, 1, 0, 0, 0}; 112 CalendarTime calendar_time{2018, 1, 1, 0, 0, 0};
113 CalendarAdditionalInfo additional_info{}; 113 CalendarAdditionalInfo additional_info{};
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 7b6453447..6135eabf8 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -471,7 +471,7 @@ private:
471 u32 flags = rp.Pop<u32>(); 471 u32 flags = rp.Pop<u32>();
472 auto buffer_queue = nv_flinger->GetBufferQueue(id); 472 auto buffer_queue = nv_flinger->GetBufferQueue(id);
473 473
474 LOG_DEBUG(Service_VI, "called, transaction=%x", transaction); 474 LOG_DEBUG(Service_VI, "called, transaction=%x", static_cast<u32>(transaction));
475 475
476 if (transaction == TransactionId::Connect) { 476 if (transaction == TransactionId::Connect) {
477 IGBPConnectRequestParcel request{ctx.ReadBuffer()}; 477 IGBPConnectRequestParcel request{ctx.ReadBuffer()};
diff --git a/src/core/loader/linker.cpp b/src/core/loader/linker.cpp
index 87cc65e91..69198e3e3 100644
--- a/src/core/loader/linker.cpp
+++ b/src/core/loader/linker.cpp
@@ -84,7 +84,7 @@ void Linker::WriteRelocations(std::vector<u8>& program_image, const std::vector<
84 } 84 }
85 break; 85 break;
86 default: 86 default:
87 LOG_CRITICAL(Loader, "Unknown relocation type: %d", rela.type); 87 LOG_CRITICAL(Loader, "Unknown relocation type: %d", static_cast<int>(rela.type));
88 break; 88 break;
89 } 89 }
90 } 90 }
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 4fdea0fdc..4d9745e48 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -153,7 +153,8 @@ void Maxwell3D::ProcessQueryGet() {
153 break; 153 break;
154 } 154 }
155 default: 155 default:
156 UNIMPLEMENTED_MSG("Query mode %u not implemented", regs.query.query_get.mode.Value()); 156 UNIMPLEMENTED_MSG("Query mode %u not implemented",
157 static_cast<u32>(regs.query.query_get.mode.Value()));
157 } 158 }
158} 159}
159 160