Skip to content

SDMDK-8892 separated long data value bytes with spaces, corrected byte ordering#159

Merged
bgn42 merged 6 commits intomainfrom
SDMDK-8892
Mar 6, 2026
Merged

SDMDK-8892 separated long data value bytes with spaces, corrected byte ordering#159
bgn42 merged 6 commits intomainfrom
SDMDK-8892

Conversation

@bgn42
Copy link
Collaborator

@bgn42 bgn42 commented Mar 4, 2026

  • corrected byte ordering while loading data and for printing byte strings
  • adapted tests and enabled/added more

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Test Results

    3 files     21 suites   0s ⏱️
1 215 tests 1 215 ✅ 0 💤 0 ❌
3 645 runs  3 645 ✅ 0 💤 0 ❌

Results for commit 516cca5.

♻️ This comment has been updated with latest results.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how event “data” byte strings are loaded and displayed, correcting byte ordering in value extraction and updating output formatting/tests in the tools/eventlist utility.

Changes:

  • Updated event data string formatting to print per-byte 0xNN values separated by spaces.
  • Switched data loading for byte-string-backed values to use binary.LittleEndian.Uint32 (and updated expectations in tests).
  • Refactored output formatting branching (json/xml/default) and enabled/expanded related unit tests.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tools/eventlist/pkg/output/output.go Refactors JSON/XML output selection logic via switch and flush behavior.
tools/eventlist/pkg/event/event.go Changes byte-string formatting and adjusts byte-order decoding for val1/val2 from data bytes.
tools/eventlist/pkg/event/event_test.go Updates expected strings / integer values to match new formatting and endian handling.
tools/eventlist/pkg/eval/value.go Changes Value.Extract logic for big-/little-endian extraction.
tools/eventlist/pkg/eval/value_test.go Updates/enables extraction tests (including big-endian cases).
tools/eventlist/pkg/eval/expression.go Adjusts postfix “dot member” evaluation to advance the lexer correctly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

…cal variable

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
bgn42 added 2 commits March 5, 2026 11:37
…No change for little endian. And created a better description
@bgn42 bgn42 requested a review from Copilot March 5, 2026 16:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@bgn42 bgn42 requested a review from brondani March 5, 2026 20:30
Copy link

@brondani brondani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running this over the EventStatistic data from SDMDK-8892 I see the sixth event being printed this way:

6 0.00010010 EvExample Data(64 bytes) 0x00 0x01 0x02 0x03

Adding the endian attribute <typedef name="4BY" info="32-bit structure" size="4" endian="B"> to EventRecorder.scvd and re-running:

6 0.00010010 EvExample Data(64 bytes) 0x03 0x02 0x01 0x00

Which sounds reasonable to me.

@bgn42 bgn42 merged commit 87610cb into main Mar 6, 2026
13 checks passed
@bgn42 bgn42 deleted the SDMDK-8892 branch March 6, 2026 13:02
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