Skip to content

SanaConform: fix quirk-stat message for foreign drivers with other special stats - #42

Merged
sidick merged 1 commit into
mainfrom
fix/sanaconform-quirk-stat-foreign-driver
Oct 22, 2026
Merged

sidick merged 1 commit into
mainfrom
fix/sanaconform-quirk-stat-foreign-driver

Conversation

@sidick

@sidick sidick commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Follow-up to SanaConform: second open uses DEVICE=; quirk stat note for other drivers #41 (which fixed SanaConform's quirk-stat message for the RecordCountSupplied==0 case against non-sana2loop drivers, found by code review of that PR).
  • The remaining case -- a foreign driver that does return special-stats records, just none matching sana2loop's own SANA2LOOP_SPECIALSTAT_DMA_HOOKS_OFFERED type -- still printed "unexpected", which only makes sense when probing loopback.device itself.
  • Now branches on whether DEVICE= actually names loopback.device: if not, prints an "expected" message instead of a false "something's wrong" report.

Test plan

  • make docker builds SanaConform clean, no warnings
  • CI (build/lint/test-host/test-target)

🤖 Generated with Claude Code

…ecial stats

PR #41 fixed the RecordCountSupplied==0 case but left the
"unexpected" message in place for a foreign driver that returns its
own (non-sana2loop) special-stats records without a DMA-hook-offered
entry -- a legitimate, expected result for any driver other than
loopback.device, not a real anomaly. Branch on DEVICE= to pick the
right message.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sidick
sidick merged commit ccef77c into main Oct 22, 2026
6 checks passed
@sidick
sidick deleted the fix/sanaconform-quirk-stat-foreign-driver branch October 22, 2026 09:27
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