mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-09 00:12:45 +01:00
APT/FS: Remove asserts that were causing false positives
This commit is contained in:
parent
12f6216741
commit
0fd727f3ad
2 changed files with 5 additions and 5 deletions
|
@ -269,8 +269,6 @@ void GetAppCpuTimeLimit(Service::Interface* self) {
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
u32 value = cmd_buff[1];
|
u32 value = cmd_buff[1];
|
||||||
|
|
||||||
ASSERT(cpu_percent != 0);
|
|
||||||
|
|
||||||
if (value != 1) {
|
if (value != 1) {
|
||||||
LOG_ERROR(Service_APT, "This value should be one, but is actually %u!", value);
|
LOG_ERROR(Service_APT, "This value should be one, but is actually %u!", value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -650,7 +650,7 @@ static void SetPriority(Service::Interface* self) {
|
||||||
|
|
||||||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||||
|
|
||||||
LOG_DEBUG(Service_FS, "called priority=0x%08X", priority);
|
LOG_DEBUG(Service_FS, "called priority=0x%X", priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -664,12 +664,14 @@ static void SetPriority(Service::Interface* self) {
|
||||||
static void GetPriority(Service::Interface* self) {
|
static void GetPriority(Service::Interface* self) {
|
||||||
u32* cmd_buff = Kernel::GetCommandBuffer();
|
u32* cmd_buff = Kernel::GetCommandBuffer();
|
||||||
|
|
||||||
ASSERT(priority != -1);
|
if (priority == -1) {
|
||||||
|
LOG_INFO(Service_FS, "priority was not set, priority=0x%X", priority);
|
||||||
|
}
|
||||||
|
|
||||||
cmd_buff[1] = RESULT_SUCCESS.raw;
|
cmd_buff[1] = RESULT_SUCCESS.raw;
|
||||||
cmd_buff[2] = priority;
|
cmd_buff[2] = priority;
|
||||||
|
|
||||||
LOG_DEBUG(Service_FS, "called priority=0x%08X", priority);
|
LOG_DEBUG(Service_FS, "called priority=0x%X", priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Interface::FunctionInfo FunctionTable[] = {
|
const Interface::FunctionInfo FunctionTable[] = {
|
||||||
|
|
Loading…
Reference in a new issue