Skip to content

Conversation

@jhofstee
Copy link
Contributor

On 32bits platforms compiled with _TIME_BITS=64 %lu/%ld fails to print / read the timestamps correctly. Always use %llu/%lld with (un)signed long long instead. The sign follows the existing formatters, as in unsigned for reading, signed for writing.

Note: we only use the rx timestamps in raw mode and that is the only thing tested. The compiler complains about the other instances, so it is included as well.

On 32bits platforms compiled with _TIME_BITS=64 %lu/%ld fails to
print / read the timestamps correctly. Always use %llu/%lld with
(un)signed long long instead. The sign follows the existing
formatters, as in unsigned for reading, signed for writing.
@jhofstee
Copy link
Contributor Author

can this be merged? Then I can upstream an OE recipe for it without patches.

@marckleinebudde marckleinebudde merged commit 7b5e91e into linux-can:master May 18, 2025
10 of 11 checks passed
@jhofstee
Copy link
Contributor Author

thanks

@jhofstee jhofstee deleted the timevals branch May 20, 2025 22:07
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.

2 participants