Skip to content

Commit

Permalink
translating all-12 (beta 2 incoming... -7 commits to go)
Browse files Browse the repository at this point in the history
Signed-off-by: Simo <[email protected]>
  • Loading branch information
Simo3ds authored Dec 16, 2023
1 parent e21ad24 commit 28dc507
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sysmodules/rosalina/source/gdb/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,31 +359,31 @@ GDB_DECLARE_QUERY_HANDLER(ThreadExtraInfo)
}

r = svcGetDebugThreadParam(&dummy, &val, ctx->debug, id, DBGTHREAD_PARAMETER_SCHEDULING_MASK_LOW);
sStatus = R_SUCCEEDED(r) ? (val == 1 ? ", running, " : ", idle, ") : "";
sStatus = R_SUCCEEDED(r) ? (val == 1 ? ", esecuzione, " : ", idle, ") : "";

val = (u32)GDB_GetDynamicThreadPriority(ctx, id);
if(val == 65)
sThreadDynamicPriority[0] = 0;
else
sprintf(sThreadDynamicPriority, "dynamic prio.: %ld, ", (s32)val);
sprintf(sThreadDynamicPriority, "priorita' dinamica.: %ld, ", (s32)val);

r = svcGetDebugThreadParam(&dummy, &val, ctx->debug, id, DBGTHREAD_PARAMETER_PRIORITY);
if(R_FAILED(r))
sThreadStaticPriority[0] = 0;
else
sprintf(sThreadStaticPriority, "static prio.: %ld, ", (s32)val);
sprintf(sThreadStaticPriority, "priorita' statica.: %ld, ", (s32)val);

r = svcGetDebugThreadParam(&dummy, &val, ctx->debug, id, DBGTHREAD_PARAMETER_CPU_IDEAL);
if(R_FAILED(r))
sCoreIdeal[0] = 0;
else
sprintf(sCoreIdeal, "ideal core: %lu, ", val);
sprintf(sCoreIdeal, "core ideale: %lu, ", val);

r = svcGetDebugThreadParam(&dummy, &val, ctx->debug, id, DBGTHREAD_PARAMETER_CPU_CREATOR); // Creator = "first ran, and running the thread"
if(R_FAILED(r))
sCoreCreator[0] = 0;
else
sprintf(sCoreCreator, "running on core %lu", val);
sprintf(sCoreCreator, "esecuzione sul core %lu", val);

n = sprintf(buf, "TLS: 0x%08lx%s%s%s%s%s", tls, sStatus, sThreadDynamicPriority, sThreadStaticPriority,
sCoreIdeal, sCoreCreator);
Expand Down

0 comments on commit 28dc507

Please sign in to comment.