Skip to content

Populate timestamp in LinControllerStatusUpdate message#297

Merged
snps-kratz merged 3 commits intomainfrom
lin_controller_status_timestamp
Mar 9, 2026
Merged

Populate timestamp in LinControllerStatusUpdate message#297
snps-kratz merged 3 commits intomainfrom
lin_controller_status_timestamp

Conversation

@snps-kratz
Copy link
Collaborator

@snps-kratz snps-kratz commented Feb 17, 2026

Subject

Initializes the timestamp variable on the LinControllerStatusUpdate message send in LinController::SetControllerStatusInternal.
Adds test conditions that check the timestamp of the LinControllerStatusUpdate message.

Description

This change fixes inconsistent logging behavior for trace logs. Originally, the timestamp field was uninitialized, leading to trace logs with timestamps that would not match simulation timestamps.
Additionally, this change populates the timestamp received by network simulators in OnControllerStatusUpdate function calls.

Instructions for review / testing

Since the tests have been changed, correctness in those should be focused.

Developer checklist (address before review)

  • Prepared update for depending repositories
  • Documentation updated (public API changes only)
  • API docstrings updated (public API changes only)
  • Rebase → commit history clean
  • Squash and merge → proper PR title

@snps-kratz snps-kratz added the bug Something isn't working label Feb 17, 2026
…erStatusInternal

Signed-off-by: Felix Kratz <felix.kratz@synopsys.com>
Signed-off-by: Felix Kratz <felix.kratz@synopsys.com>
@snps-kratz snps-kratz force-pushed the lin_controller_status_timestamp branch from 35d66d6 to 0548b12 Compare February 17, 2026 12:30
Copy link
Member

@VDanielEdwards VDanielEdwards left a comment

Choose a reason for hiding this comment

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

The only thing I'd add is making sure that the message is initialized (see the comment, just in case we add any fields in the future). Otherwise LGTM!

Co-authored-by: Daniel Edwards <daniel.edwards@vector.com>
Signed-off-by: Felix Kratz <felix.kratz@synopsys.com>
@snps-kratz snps-kratz merged commit 9503341 into main Mar 9, 2026
15 checks passed
@snps-kratz snps-kratz deleted the lin_controller_status_timestamp branch March 9, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants