diff --git a/core/panic.c b/core/panic.c index 007f4c00db85..6a2f2af52bee 100644 --- a/core/panic.c +++ b/core/panic.c @@ -30,9 +30,15 @@ #include "panic.h" #include "arch/panic_arch.h" -#if DEVELHELP && defined MODULE_PS +#ifdef DEVELHELP +#ifdef MODULE_PS #include "ps.h" #endif +#ifdef MODULE_NG_PKTBUF +#include "net/ng_pktbuf.h" +#endif +#endif + /* flag preventing "recursive crash printing loop" */ static int crashed = 0; @@ -52,6 +58,9 @@ NORETURN void core_panic(int crash_code, const char *message) ps(); puts(""); #endif +#ifdef MODULE_NG_PKTBUF + ng_pktbuf_stats(); +#endif puts("*** halted.\n"); #else