[riot-notifications] [RIOT-OS/RIOT] gnrc_sixlowpan: don't use PRIx8 (#11124)
notifications at github.com
Thu Mar 7 20:46:30 CET 2019
maribu commented on this pull request.
> @@ -222,8 +217,7 @@ static void _receive(gnrc_pktsnip_t *pkt)
- DEBUG("6lo: dispatch %02" PRIx8 " ... is not supported\n",
+ DEBUG("6lo: dispatch %02x... is not supported\n", dispatch);
I'm aware that in practice `float` gets promoted to `double` and all integer types smaller than `int` get promoted to `int`. But are you sure that is C standard? (At least ´clang -Weverything` does not complain, so it might very well be.) If not, an `uint8_t` will be pushed on the argument stack and an `unsigned int` will be popped by `printf`.
I personally would do the cast even if this is officially specified, as it just looks strange if format specifier and argument are of different type
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications