gnrc_sixlowpan: don't use PRIx8
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
This commit is contained in:
parent
87d0757689
commit
f6d3290507
@ -27,11 +27,6 @@
|
||||
#define ENABLE_DEBUG (0)
|
||||
#include "debug.h"
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
/* For PRIu16 etc. */
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
static kernel_pid_t _pid = KERNEL_PID_UNDEF;
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
@ -222,8 +217,7 @@ static void _receive(gnrc_pktsnip_t *pkt)
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
DEBUG("6lo: dispatch %02" PRIx8 " ... is not supported\n",
|
||||
dispatch[0]);
|
||||
DEBUG("6lo: dispatch %02x... is not supported\n", dispatch[0]);
|
||||
gnrc_pktbuf_release(pkt);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user