kernel: reduce log spam

This commit is contained in:
DH 2024-09-02 20:31:47 +03:00
parent d54fc9764f
commit b2e180e533
3 changed files with 1 additions and 8 deletions

View file

@ -617,7 +617,7 @@ orbis::SysResult orbis::sys_osem_trywait(Thread *thread, sint id, sint need) {
return {};
}
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);
if (count < 1 || count > sem->maxValue - sem->value)
return ErrorCode::INVAL;

View file

@ -348,10 +348,8 @@ orbis::ErrorCode orbis::umtx_cv_wait(Thread *thread, ptr<ucond> cv,
auto start = std::chrono::steady_clock::now();
std::uint64_t udiff = 0;
while (true) {
ORBIS_LOG_WARNING(__FUNCTION__, ut - udiff);
result = ErrorCode{node->second.cv.wait(chain.mtx, ut - udiff)};
if (node->second.thr != thread) {
ORBIS_LOG_WARNING(__FUNCTION__, "wakeup");
break;
}
udiff = std::chrono::duration_cast<std::chrono::microseconds>(
@ -359,7 +357,6 @@ orbis::ErrorCode orbis::umtx_cv_wait(Thread *thread, ptr<ucond> cv,
.count();
if (udiff >= ut) {
result = ErrorCode::TIMEDOUT;
ORBIS_LOG_WARNING(__FUNCTION__, "timeout");
break;
}

View file

@ -51,10 +51,6 @@ static orbis::ErrorCode console_write(orbis::File *file, orbis::Uio *uio,
for (auto vec : std::span(uio->iov, uio->iovcnt)) {
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(2, vec.base, vec.len);