fsc_debug.h

Go to the documentation of this file.
00001 
00014 #ifndef FSC_DEBUG_H_
00015  #define FSC_DEBUG_H_
00016 
00017 
00018 #ifndef __KERNEL__
00019 #  define __KERNEL__
00020 #endif
00021 
00022 
00023 #include <linux/kernel.h>
00024 
00025 
00027 // #define FSC_DEBUG
00028 
00029 
00034 #undef PDEBUG             /* undef it, just in case */
00035 #ifdef FSC_DEBUG
00036 
00037         /* This one if debugging is on, and kernel space */
00038 #       ifdef __KERNEL__
00039         
00040 #               define PDEBUG(fmt, args...) printk(KERN_DEBUG "FSC: " fmt, ## args)
00041 #               define PINFO(fmt, args...) printk(KERN_INFO "FSC: " fmt, ## args)
00042 
00043         /* This one for user space */
00044 #       else
00045 #               define PDEBUG(fmt, args...) fprintf(stderr, fmt, ## args)
00046 #               define PINFO(fmt, args...) fprintf(stdout, fmt, ## args)
00047 #       endif
00048 
00049 #else
00050 #       define PDEBUG(fmt, args...) /* not debugging: nothing */
00051 #       define PINFO(fmt, args...) 
00052 #endif
00053 
00055 #endif
00056 
00057 

Generated on Mon May 28 13:33:08 2007 for MYSQLFS by  doxygen 1.5.0