Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64717
b: refs/heads/master
c: ee5c802
h: refs/heads/master
i:
  64715: c749554
v: v3
  • Loading branch information
Christoph Hellwig authored and Tim Shimmin committed Sep 5, 2007
1 parent 465e022 commit f21eb1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34521c5e4971d01f6ef650fdee59e07be6c2c5e3
refs/heads/master: ee5c80239d5f152d99f69165afbd115518353563
10 changes: 6 additions & 4 deletions trunk/fs/xfs/support/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ extern void cmn_err(int, char *, ...)
extern void assfail(char *expr, char *f, int l);

#define ASSERT_ALWAYS(expr) \
(unlikely((expr) != 0) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
(unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))

#ifndef DEBUG
# define ASSERT(expr) ((void)0)
#define ASSERT(expr) ((void)0)

#ifndef STATIC
# define STATIC static noinline
Expand All @@ -49,8 +49,10 @@ extern void assfail(char *expr, char *f, int l);

#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
# define STATIC noinline
Expand Down

0 comments on commit f21eb1a

Please sign in to comment.