mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-22 03:22:39 +02:00
kern/sm: fix debug port output
This commit is contained in:
parent
7519d17941
commit
247bade76a
@ -181,21 +181,22 @@ namespace ams::kern::KDumpObject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MESOSPHERE_RELEASE_LOG("%-9s: Handle %08x Obj=%p Cur=%3d Peak=%3d Max=%3d\n", name, handle, obj.GetPointerUnsafe(), client->GetNumSessions(), client->GetPeakSessions(), client->GetMaxSessions());
|
}
|
||||||
|
|
||||||
/* Identify any sessions. */
|
MESOSPHERE_RELEASE_LOG("%-9s: Handle %08x Obj=%p Cur=%3d Peak=%3d Max=%3d\n", name, handle, obj.GetPointerUnsafe(), client->GetNumSessions(), client->GetPeakSessions(), client->GetMaxSessions());
|
||||||
{
|
|
||||||
for (auto it = accessor.begin(); it != end && client_port_process.IsNull(); ++it) {
|
/* Identify any sessions. */
|
||||||
KProcess *cur = static_cast<KProcess *>(std::addressof(*it));
|
{
|
||||||
for (size_t j = 0; j < cur->GetHandleTable().GetMaxCount(); ++j) {
|
for (auto it = accessor.begin(); it != end; ++it) {
|
||||||
ams::svc::Handle cur_h = ams::svc::InvalidHandle;
|
KProcess *cur = static_cast<KProcess *>(std::addressof(*it));
|
||||||
KScopedAutoObject cur_o = cur->GetHandleTable().GetObjectByIndex(std::addressof(cur_h), j);
|
for (size_t j = 0; j < cur->GetHandleTable().GetMaxCount(); ++j) {
|
||||||
if (cur_o.IsNull()) {
|
ams::svc::Handle cur_h = ams::svc::InvalidHandle;
|
||||||
continue;
|
KScopedAutoObject cur_o = cur->GetHandleTable().GetObjectByIndex(std::addressof(cur_h), j);
|
||||||
}
|
if (cur_o.IsNull()) {
|
||||||
if (auto *session = cur_o->DynamicCast<KClientSession *>(); session != nullptr && session->GetParent()->GetParent() == client) {
|
continue;
|
||||||
MESOSPHERE_RELEASE_LOG(" Client %p Server %p %-12s: PID=%3lu\n", session, std::addressof(session->GetParent()->GetServerSession()), cur->GetName(), cur->GetId());
|
}
|
||||||
}
|
if (auto *session = cur_o->DynamicCast<KClientSession *>(); session != nullptr && session->GetParent()->GetParent() == client) {
|
||||||
|
MESOSPHERE_RELEASE_LOG(" Client %p Server %p %-12s: PID=%3lu\n", session, std::addressof(session->GetParent()->GetServerSession()), cur->GetName(), cur->GetId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user