Diff for /xfs-linux/support/debug.h between versions 1.17 and 1.18

version 1.17, 2007/03/06 02:58:28 version 1.18, 2007/08/02 15:58:18
Line 34  extern void cmn_err(int, char *, ...) Line 34  extern void cmn_err(int, char *, ...)
 extern void assfail(char *expr, char *f, int l);  extern void assfail(char *expr, char *f, int l);
   
 #define ASSERT_ALWAYS(expr)     \  #define ASSERT_ALWAYS(expr)     \
         (unlikely((expr) != 0) ? (void)0 : assfail(#expr, __FILE__, __LINE__))          (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
   
 #ifndef DEBUG  #ifndef DEBUG
 # define ASSERT(expr)   ((void)0)  #define ASSERT(expr)    ((void)0)
   
 #ifndef STATIC  #ifndef STATIC
 # define STATIC static noinline  # define STATIC static noinline
Line 49  extern void assfail(char *expr, char *f, Line 49  extern void assfail(char *expr, char *f,
   
 #else /* DEBUG */  #else /* DEBUG */
   
 # define ASSERT(expr)   ASSERT_ALWAYS(expr)  #include <linux/random.h>
 # include <linux/random.h>  
   #define ASSERT(expr)    \
           (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
   
 #ifndef STATIC  #ifndef STATIC
 # define STATIC noinline  # define STATIC noinline

Removed from v.1.17  
changed lines
  Added in v.1.18


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>