Other Fixes#364
Merged
erichelgeson merged 5 commits intomainfrom Apr 28, 2026
Merged
Conversation
The log mask was a uint8_t defaulting to 0xFF with the selected ID masked by & 7, so any future build with S2S_MAX_TARGETS > 8 would silently drop debug logging for IDs 8-15. Introduce BLUESCSI_DEFAULT_LOG_MASK = ((1UL << S2S_MAX_TARGETS) - 1UL), widen g_scsi_log_mask to uint32_t, and mask the selected ID by (S2S_MAX_TARGETS - 1) so the mask tracks target count automatically. Cherry-picked from d3bd45c26.
Previously the SCSI trace only logged the decoded command name, so any opcode not present in getCommandName() produced 'COMMAND: Unknown' with no way to tell which opcode was actually received without correlating the next OUT hex dump line. Emit the opcode byte as a hex literal followed by the decoded name in parentheses, for example: ---- COMMAND: 0x12 (Inquiry) ---- COMMAND: 0xDE (Unknown) This keeps each COMMAND trace line self-contained and makes unknown opcodes directly actionable. Cherry-picked from c73f394aad.
Only clone SCSI peripheral types that may be block types and print the full name of those types. Cherry-picked from 624d74777.
Scan SCSI IDs 8-15 in addition to 0-7 on wide bus builds, and encode the target ID in the imaged filename as a single character: '0'-'9' for 0-9, 'A'-'F' for 10-15. A hard drive at SCSI ID 11 becomes HDB0_imaged.hda. Cherry-picked from f528c2403, b6616ffb0.
BlueSCSI Memory ReportCompared against release Memory Usage
Symbol Region ChangesPico_2_Audio_SPDIF: 3 symbols moved FLASH → RAM (+12 B)
Pico_2_Audio_SPDIF: 9 symbols moved RAM → FLASH (-298 B RAM)
Pico_2_DaynaPORT: 3 symbols moved FLASH → RAM (+12 B)
Pico_2_DaynaPORT: 9 symbols moved RAM → FLASH (-298 B RAM)
Pico_Audio_SPDIF: 13 symbols moved FLASH → RAM (+2.0 KB)
Pico_Audio_SPDIF: 43 symbols moved RAM → FLASH (-5.3 KB RAM)
Pico_DaynaPORT: 34 symbols moved FLASH → RAM (+7.2 KB)
Pico_DaynaPORT: 3 symbols moved RAM → FLASH (-1.2 KB RAM)
Ultra: 4 symbols moved FLASH → RAM (+16 B)
Ultra: 9 symbols moved RAM → FLASH (-298 B RAM)
Ultra_Wide: 4 symbols moved FLASH → RAM (+16 B)
Ultra_Wide: 9 symbols moved RAM → FLASH (-298 B RAM)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Putting some resources here for others who might not know that just adding a
Co-authored-by:to a commit is not the same as preserving the author.Every commit has both an author (who wrote the change) and a committer (who applied it) — they're stored as separate metadata and are allowed to differ.
Co-authored-by:is just a trailer in the commit message body - it does not change the author field, sogit logandgit blamewill still show whoever ran git commit as the author.Cherry-pick allows you to pick commits from any remote, even if they've diverged. Preserves the original author and sets you as the committer automatically:
You can format a patch then apply it with git am (which preserves authorship from the patch metadata) and resolve conflicts if necessary.
If you accidentally commit the wrong author or manually apply a patch, you can
--amendorcommitit using--author:There will of course be situations where this can get complex but normally it's pretty straight forward.
HTH
This PR is various fixes (see individual commits) with authors correctly preserved. Thanks!