Skip to content

Make the DECI2 text log limit configurable - #213

Open
Sinan-Karakaya wants to merge 1 commit into
ran-j:mainfrom
Sinan-Karakaya:fix/deci2-log-limit
Open

Make the DECI2 text log limit configurable#213
Sinan-Karakaya wants to merge 1 commit into
ran-j:mainfrom
Sinan-Karakaya:fix/deci2-log-limit

Conversation

@Sinan-Karakaya

@Sinan-Karakaya Sinan-Karakaya commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

logDeci2Text stops after 256 lines and then silently drops everything else. That is a sensible default against a game that spams kputs, but it makes the runtime unusable as the candidate side of a boot-trace diff: real captures run to many thousands of lines, and a silent truncation partway through looks exactly like the guest stopping.

Adds PS2X_DECI2_LOG_LIMIT, with 0 meaning unlimited. Unset or unparseable keeps the existing 256, so nothing changes by default.

Context: some retail games ship a compile-time-stubbed printf wrapper whose body was dead-code-eliminated down to a bare return, while the shared formatter it used to tail-call is still live and still reaches kputs -> DECI2. Redirecting the stub back at the formatter (via replaceFunction) turns the runtime into a source of the same trace the real hardware produces, which is a rather good oracle for bring-up, provided the log is not capped.

logDeci2Text stops after 256 lines and then silently drops everything
else. That is a sensible default against a game that spams kputs, but
it makes the runtime unusable as the candidate side of a boot-trace
diff: real captures run to many thousands of lines, and a silent
truncation partway through looks exactly like the guest stopping.

Adds PS2X_DECI2_LOG_LIMIT, with 0 meaning unlimited. Unset or
unparseable keeps the existing 256.

(cherry picked from commit 50dc8681cedc62852604b29a04134c4c3126aec1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant