aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/support/debug.h
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2011-03-06 18:09:35 -0500
committerDave Chinner <david@fromorbit.com>2011-03-06 18:09:35 -0500
commit9130090b5f04f7e7bc29b944e0b1ba494fff3f98 (patch)
tree54fafe352489be96c1796c022e431b97a5f48268 /fs/xfs/support/debug.h
parent0b932cccbdc09a72aa370456a59b40ecd6b10baf (diff)
xfs: kill support/debug.[ch]
The remaining functionality in debug.[ch] is effectively just assert handling, conditional debug definitions and hex dumping. The hex dumping and assert function can be moved into the new printk module, while the rest can be moved into top-level header files. This allows fs/xfs/support/debug.[ch] to be completely removed from the codebase. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/support/debug.h')
-rw-r--r--fs/xfs/support/debug.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/fs/xfs/support/debug.h b/fs/xfs/support/debug.h
deleted file mode 100644
index db36be48a43..00000000000
--- a/fs/xfs/support/debug.h
+++ /dev/null
@@ -1,45 +0,0 @@
1/*
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18#ifndef __XFS_SUPPORT_DEBUG_H__
19#define __XFS_SUPPORT_DEBUG_H__
20
21#include <stdarg.h>
22
23extern void assfail(char *expr, char *f, int l);
24
25#define ASSERT_ALWAYS(expr) \
26 (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
27
28#ifndef DEBUG
29#define ASSERT(expr) ((void)0)
30
31#ifndef STATIC
32# define STATIC static noinline
33#endif
34
35#else /* DEBUG */
36
37#define ASSERT(expr) \
38 (unlikely(expr) ? (void)0 : assfail(#expr, __FILE__, __LINE__))
39
40#ifndef STATIC
41# define STATIC noinline
42#endif
43
44#endif /* DEBUG */
45#endif /* __XFS_SUPPORT_DEBUG_H__ */