summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar N00byKing2018-03-19 17:07:08 +0100
committerGravatar N00byKing2018-03-19 17:07:08 +0100
commitef875d6a356fef22d52ec2cdf2a326297740ff66 (patch)
tree8565762859d7be0329fb5991819b8381c690527d /src/core/hle
parentMerge pull request #251 from Subv/tic_tsc (diff)
downloadyuzu-ef875d6a356fef22d52ec2cdf2a326297740ff66.tar.gz
yuzu-ef875d6a356fef22d52ec2cdf2a326297740ff66.tar.xz
yuzu-ef875d6a356fef22d52ec2cdf2a326297740ff66.zip
Clean Warnings (?)
Diffstat (limited to 'src/core/hle')
-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.cpp2
-rw-r--r--src/core/hle/kernel/shared_memory.cpp6
-rw-r--r--src/core/hle/kernel/svc.cpp2
-rw-r--r--src/core/hle/service/filesystem/fsp_srv.cpp6
-rw-r--r--src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp2
-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
10 files changed, 15 insertions, 15 deletions
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..9d6fe0cf2 100644
--- a/src/core/hle/kernel/server_session.cpp
+++ b/src/core/hle/kernel/server_session.cpp
@@ -78,7 +78,7 @@ 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", static_cast<int>(domain_message_header->command.Value()));
82 ASSERT(false); 82 ASSERT(false);
83 } 83 }
84 84
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp
index 4d6cd7462..1875dd8d0 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 }
@@ -145,7 +145,7 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
145 if (result.Failed()) { 145 if (result.Failed()) {
146 LOG_ERROR( 146 LOG_ERROR(
147 Kernel, 147 Kernel,
148 "cannot map id=%u, target_address=0x%llx name=%s, error mapping to virtual memory", 148 "cannot map id=%u, target_address=0x%lx name=%s, error mapping to virtual memory",
149 GetObjectId(), target_address, name.c_str()); 149 GetObjectId(), target_address, name.c_str());
150 return result.Code(); 150 return result.Code();
151 } 151 }
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 118ce3ee5..062bcf29e 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -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..470b6350e 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%l, length=0x%l", 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%l, length=0x%l", 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%l, length=0x%l", 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..e48f13fa1 100644
--- a/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvdisp_disp0.cpp
@@ -23,7 +23,7 @@ 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",
27 addr, offset, width, height, stride, format); 27 addr, offset, width, height, stride, format);
28 28
29 using PixelFormat = RendererBase::FramebufferInfo::PixelFormat; 29 using PixelFormat = RendererBase::FramebufferInfo::PixelFormat;
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()};