diff options
Diffstat (limited to 'runtime/staprun/staprun.h')
-rw-r--r-- | runtime/staprun/staprun.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index c3599de6..f8fcfe66 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -34,10 +34,11 @@ #include <sys/statfs.h> #include <linux/version.h> +#define DEBUG #ifdef DEBUG -#define dbug(args...) {fprintf(stderr,"%s:%d ",__FUNCTION__, __LINE__); fprintf(stderr,args); } +#define dbug(level, args...) {if (verbose>=level) {fprintf(stderr,"%s:%d ",__FUNCTION__, __LINE__); fprintf(stderr,args);}} #else -#define dbug(args...) ; +#define dbug(level, args...) ; #endif /* DEBUG */ #define err(args...) {fprintf(stderr,"%s:%d ",__FUNCTION__, __LINE__); fprintf(stderr,args); } @@ -69,6 +70,7 @@ int init_relayfs(void); void close_relayfs(void); int init_oldrelayfs(void); void close_oldrelayfs(int); +void setup_signals(void); /* * variables |