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:
Martine Lenders 2019-03-07 12:45:27 +01:00
parent 87d0757689
commit f6d3290507

View File

@ -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;
}