From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- pfinet/glue-include/linux/kernel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pfinet/glue-include/linux/kernel.h') diff --git a/pfinet/glue-include/linux/kernel.h b/pfinet/glue-include/linux/kernel.h index de5852f6..62ba2ff1 100644 --- a/pfinet/glue-include/linux/kernel.h +++ b/pfinet/glue-include/linux/kernel.h @@ -3,7 +3,7 @@ #include #include -#include +#include /* These don't actually matter since our locking protocols are different. */ @@ -24,7 +24,7 @@ #define KERN_INFO #define KERN_DEBUG -#define panic(str...) (printk (str), assert (!"panic")) +#define panic(str...) (printk (str), assert_backtrace (!"panic")) /* * Display an IP address in readable format. @@ -63,14 +63,14 @@ putname (char *p) static inline int kill_proc (int pid, int signo, int priv) { - assert (signo == SIGURG); + assert_backtrace (signo == SIGURG); return 0; } static inline int kill_pg (int pgrp, int signo, int priv) { - assert (signo == SIGURG); + assert_backtrace (signo == SIGURG); return 0; } -- cgit v1.2.3