-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
print: Missing size_t print format specifiers #20249
Conversation
@@ -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__, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
312ed02
to
291c89f
Compare
Contribution description
I seem to have missed some
size_t
prints without casts indrivers
andtests/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