Skip to content

Silence the stray debug print in fd_fdstat_set_rights - #153

Merged
Kronos3 merged 2 commits into
nasa:mainfrom
kadircanyildirm-crypto:fix/wasi-stray-debug-print
Aug 1, 2026
Merged

Silence the stray debug print in fd_fdstat_set_rights#153
Kronos3 merged 2 commits into
nasa:mainfrom
kadircanyildirm-crypto:fix/wasi-stray-debug-print

Conversation

@kadircanyildirm-crypto

Copy link
Copy Markdown
Contributor

wasi_preview1.rs:376 is the only uncommented eprintln! of the 49 in this file, so a guest calling fd_fdstat_set_rights writes a debug line to the host's stderr:

$ spacewasi rights.wasm
fd_fdstat_set_rights(1, 0, 0)

The same module against fd_fdstat_get prints nothing. tests/integration.rs asserts only on stdout, which is why this went unnoticed.

Commented out to match the other 48 rather than removed. cargo test -p spacewasi stays at 7 passed.

AI-assisted (Claude Code) per AI_POLICY.md.

wasi_preview1.rs:376 was the only uncommented eprintln! of the 49 in
this file, so a guest calling fd_fdstat_set_rights wrote a debug line
to the host's stderr. Commented out to match the others.
Comment thread crates/spacewasi/src/wasi_preview1.rs Outdated
@Kronos3

Kronos3 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Oops I didn't realize all the wasi functions had commented printlns. I'll request @cole-wilson review since he owns this crate.

@Kronos3
Kronos3 requested a review from cole-wilson August 1, 2026 17:25
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

CoreMark Benchmark Results

Current Score: 242.072
Baseline Score (main): 247.056
Difference: -4.984 (-2.02%)

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Code Coverage Report

Current Coverage: 95.29%
Baseline Coverage (main): 95.29%
Difference: +0.00%

@cole-wilson

Copy link
Copy Markdown
Collaborator

Oops, I completely missed that! Thanks for catching it.

@Kronos3
Kronos3 merged commit 1cba094 into nasa:main Aug 1, 2026
16 checks passed
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.

3 participants