From e20451edd8ec1256ffaeafde962a746b5d0b9ab3 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 29 Sep 2015 15:27:49 +0200 Subject: [PATCH] gnrc_pktbuf_static: fix order of calling --- sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c b/sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c index 2d0b68fe03..1795cb6760 100644 --- a/sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c +++ b/sys/net/gnrc/pktbuf_static/gnrc_pktbuf_static.c @@ -313,8 +313,8 @@ void gnrc_pktbuf_stats(void) } _print_chunk(chunk, size, count++); chunk += (size + ptr->size); - ptr = ptr->next; _print_unused(ptr); + ptr = ptr->next; } if (chunk <= &_pktbuf[GNRC_PKTBUF_SIZE - 1]) {