-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gnrc_sixlowpan: don't use PRIx8 #11124
Conversation
With newlib nano-specs the debug output without this change will be 6lo: dispatch 0hx ... is not supported With this PR this will provide a correct output, e.g. 6lo: dispatch 0x3f ... is not supported
/* For PRIu16 etc. */ | ||
#include <inttypes.h> | ||
#endif | ||
|
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.
This is not needed anymore so it can be removed.
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.
The format specified doesn't match the given type. Please cast the second argument to unsigned int
.
Tested with the MSBA-2 using the PR version of |
Contribution description
With newlib nano-specs the debug output without this change will be
With this PR this will provide a correct output, e.g.
Testing procedure
Flash two 6Lo-capable boards that utilize newlib-nano (e.g.
samr21-xpro
oriotlab-m3
) withENABLE_DEBUG=1
insys/net/gnrc/network_layer/sixlowpan/gnrc_sixlowpan.c
withgnrc_minimal
andgnrc_networking
respectively. You need to resetgnrc_minimal
once you connected a terminal to get the IPv6 address. Then try without any additional configuration to ping thegnrc_minimal
node from thegnrc_networking
node. Without this PR you should get the linesomewhere in the output, with it you will get
Issues/PRs references
Found when I was debugging #11091 (comment).