mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
kernel: reduce log spam
This commit is contained in:
parent
d54fc9764f
commit
b2e180e533
3 changed files with 1 additions and 8 deletions
|
|
@ -617,7 +617,7 @@ orbis::SysResult orbis::sys_osem_trywait(Thread *thread, sint id, sint need) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
orbis::SysResult orbis::sys_osem_post(Thread *thread, sint id, sint count) {
|
orbis::SysResult orbis::sys_osem_post(Thread *thread, sint id, sint count) {
|
||||||
ORBIS_LOG_WARNING(__FUNCTION__, thread, id, count);
|
ORBIS_LOG_TRACE(__FUNCTION__, thread, id, count);
|
||||||
Ref<Semaphore> sem = thread->tproc->semMap.get(id);
|
Ref<Semaphore> sem = thread->tproc->semMap.get(id);
|
||||||
if (count < 1 || count > sem->maxValue - sem->value)
|
if (count < 1 || count > sem->maxValue - sem->value)
|
||||||
return ErrorCode::INVAL;
|
return ErrorCode::INVAL;
|
||||||
|
|
|
||||||
|
|
@ -348,10 +348,8 @@ orbis::ErrorCode orbis::umtx_cv_wait(Thread *thread, ptr<ucond> cv,
|
||||||
auto start = std::chrono::steady_clock::now();
|
auto start = std::chrono::steady_clock::now();
|
||||||
std::uint64_t udiff = 0;
|
std::uint64_t udiff = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
ORBIS_LOG_WARNING(__FUNCTION__, ut - udiff);
|
|
||||||
result = ErrorCode{node->second.cv.wait(chain.mtx, ut - udiff)};
|
result = ErrorCode{node->second.cv.wait(chain.mtx, ut - udiff)};
|
||||||
if (node->second.thr != thread) {
|
if (node->second.thr != thread) {
|
||||||
ORBIS_LOG_WARNING(__FUNCTION__, "wakeup");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
udiff = std::chrono::duration_cast<std::chrono::microseconds>(
|
udiff = std::chrono::duration_cast<std::chrono::microseconds>(
|
||||||
|
|
@ -359,7 +357,6 @@ orbis::ErrorCode orbis::umtx_cv_wait(Thread *thread, ptr<ucond> cv,
|
||||||
.count();
|
.count();
|
||||||
if (udiff >= ut) {
|
if (udiff >= ut) {
|
||||||
result = ErrorCode::TIMEDOUT;
|
result = ErrorCode::TIMEDOUT;
|
||||||
ORBIS_LOG_WARNING(__FUNCTION__, "timeout");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,6 @@ static orbis::ErrorCode console_write(orbis::File *file, orbis::Uio *uio,
|
||||||
|
|
||||||
for (auto vec : std::span(uio->iov, uio->iovcnt)) {
|
for (auto vec : std::span(uio->iov, uio->iovcnt)) {
|
||||||
uio->offset += vec.len;
|
uio->offset += vec.len;
|
||||||
if (std::string_view((char *)vec.base, vec.len).contains("begin_setControllerFocus")) {
|
|
||||||
ORBIS_LOG_ERROR(__FUNCTION__, thread->tid);
|
|
||||||
thread->where();
|
|
||||||
}
|
|
||||||
|
|
||||||
::write(dev->outputFd, vec.base, vec.len);
|
::write(dev->outputFd, vec.base, vec.len);
|
||||||
::write(2, vec.base, vec.len);
|
::write(2, vec.base, vec.len);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue