Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: add ng_pktbuf_stats() to core panic #3500

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion core/panic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down