Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print: Missing size_t print format specifiers #20249

Merged
merged 3 commits into from
Jan 13, 2024

Conversation

fzi-haxel
Copy link
Contributor

Contribution description

I seem to have missed some size_t prints without casts in drivers and tests/unittests/tests-uri_parser/tests-uri_parser.c.
I also made two mistakes in sys/net/gnrc.
This PR fixes them.

Testing procedure

This should have no functional impact on currently supported architectures, as sizeof(size_t) == sizeof(unsigned) is true for all them. Test as usual.

Issues/PRs references

Fixes #20194

@github-actions github-actions bot added Area: network Area: Networking Area: tests Area: tests and testing framework Area: drivers Area: Device drivers Area: LoRa Area: LoRa radio support Area: sys Area: System labels Jan 12, 2024
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jan 12, 2024
@riot-ci
Copy link

riot-ci commented Jan 12, 2024

Murdock results

✔️ PASSED

291c89f sys/net/gnrc: Fixed wrong PRIuSIZE format specifier

Success Failures Total Runtime
8100 0 8101 10m:25s

Artifacts

@benpicco benpicco added this pull request to the merge queue Jan 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 12, 2024
@@ -645,7 +645,7 @@ static int _atwinc15x0_get(netdev_t *netdev, netopt_t opt, void *val,
assert(dev);
assert(dev == atwinc15x0);

DEBUG("%s dev=%p opt=%u val=%p max_len=%u\n", __func__,
DEBUG("%s dev=%p opt=%u val=%p max_len=%" PRIuSIZE "\n", __func__,
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like those macros are not known here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's missing #include "architecture.h".
The header is included in many places, so it tried to get away with not including it in every file that uses PRIuSIZE. I am currently building all examples/tests with the board to see if there are other problems with this board.

If it's ok, I'll add the missing includes and force push a version with the missing includes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All builds for lora-e5-dev should work. I also tried some other platforms, but didn't find any other problems.

@benpicco benpicco added this pull request to the merge queue Jan 13, 2024
Merged via the queue into RIOT-OS:master with commit c7dc305 Jan 13, 2024
26 checks passed
@fzi-haxel fzi-haxel deleted the pr/size_t_format_fixes branch January 15, 2024 10:27
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.01 milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers Area: LoRa Area: LoRa radio support Area: network Area: Networking Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants