Commit 233dc581 authored by Nathan Scott's avatar Nathan Scott

[XFS] Switch all XFSDEBUG to DEBUG

SGI Modid: xfs-linux:xfs-kern:171990a
parent 1f2a36f1
# #
# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
# #
# This program is free software; you can redistribute it and/or modify it # This program is free software; you can redistribute it and/or modify it
# under the terms of version 2 of the GNU General Public License as # under the terms of version 2 of the GNU General Public License as
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux -funsigned-char EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux -funsigned-char
ifeq ($(CONFIG_XFS_DEBUG),y) ifeq ($(CONFIG_XFS_DEBUG),y)
EXTRA_CFLAGS += -g -DSTATIC="" -DDEBUG -DXFSDEBUG EXTRA_CFLAGS += -g -DSTATIC="" -DDEBUG
EXTRA_CFLAGS += -DPAGEBUF_LOCK_TRACKING EXTRA_CFLAGS += -DPAGEBUF_LOCK_TRACKING
endif endif
ifeq ($(CONFIG_XFS_TRACE),y) ifeq ($(CONFIG_XFS_TRACE),y)
......
...@@ -97,7 +97,7 @@ xfs_read_xfsstats( ...@@ -97,7 +97,7 @@ xfs_read_xfsstats(
len += sprintf(buffer + len, "xpc %Lu %Lu %Lu\n", len += sprintf(buffer + len, "xpc %Lu %Lu %Lu\n",
xs_xstrat_bytes, xs_write_bytes, xs_read_bytes); xs_xstrat_bytes, xs_write_bytes, xs_read_bytes);
len += sprintf(buffer + len, "debug %u\n", len += sprintf(buffer + len, "debug %u\n",
#if defined(XFSDEBUG) #if defined(DEBUG)
1); 1);
#else #else
0); 0);
......
...@@ -92,7 +92,7 @@ extern void xfs_qm_exit(void); ...@@ -92,7 +92,7 @@ extern void xfs_qm_exit(void);
# define XFS_TRACE_STRING # define XFS_TRACE_STRING
#endif #endif
#ifdef XFSDEBUG #ifdef DEBUG
# define XFS_DBG_STRING "debug" # define XFS_DBG_STRING "debug"
#else #else
# define XFS_DBG_STRING "no debug" # define XFS_DBG_STRING "no debug"
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
#include "xfs_buf_item.h" #include "xfs_buf_item.h"
#ifdef XFSDEBUG #ifdef DEBUG
STATIC void STATIC void
xfs_bmap_check_leaf_extents(xfs_btree_cur_t *cur, xfs_inode_t *ip, int whichfork); xfs_bmap_check_leaf_extents(xfs_btree_cur_t *cur, xfs_inode_t *ip, int whichfork);
#endif #endif
...@@ -195,7 +195,7 @@ xfs_bmap_btree_to_extents( ...@@ -195,7 +195,7 @@ xfs_bmap_btree_to_extents(
int *logflagsp, /* inode logging flags */ int *logflagsp, /* inode logging flags */
int whichfork); /* data or attr fork */ int whichfork); /* data or attr fork */
#ifdef XFSDEBUG #ifdef DEBUG
/* /*
* Check that the extents list for the inode ip is in the right order. * Check that the extents list for the inode ip is in the right order.
*/ */
...@@ -695,7 +695,7 @@ xfs_bmap_add_extent( ...@@ -695,7 +695,7 @@ xfs_bmap_add_extent(
*curp = cur; *curp = cur;
} }
done: done:
#ifdef XFSDEBUG #ifdef DEBUG
if (!error) if (!error)
xfs_bmap_check_leaf_extents(*curp, ip, whichfork); xfs_bmap_check_leaf_extents(*curp, ip, whichfork);
#endif #endif
...@@ -5790,7 +5790,7 @@ xfs_bmap_eof( ...@@ -5790,7 +5790,7 @@ xfs_bmap_eof(
return 0; return 0;
} }
#ifdef XFSDEBUG #ifdef DEBUG
/* /*
* Check that the extents list for the inode ip is in the right order. * Check that the extents list for the inode ip is in the right order.
*/ */
......
...@@ -700,7 +700,7 @@ xfs_bmbt_delrec( ...@@ -700,7 +700,7 @@ xfs_bmbt_delrec(
return error; return error;
} }
#ifdef XFSDEBUG #ifdef DEBUG
/* /*
* Get the data from the pointed-to record. * Get the data from the pointed-to record.
*/ */
......
...@@ -673,7 +673,7 @@ xfs_bmbt_update( ...@@ -673,7 +673,7 @@ xfs_bmbt_update(
xfs_filblks_t, xfs_filblks_t,
xfs_exntst_t); xfs_exntst_t);
#ifdef XFSDEBUG #ifdef DEBUG
/* /*
* Get the data from the pointed-to record. * Get the data from the pointed-to record.
*/ */
......
...@@ -122,9 +122,7 @@ STATIC void xlog_ticket_put(xlog_t *log, xlog_ticket_t *ticket); ...@@ -122,9 +122,7 @@ STATIC void xlog_ticket_put(xlog_t *log, xlog_ticket_t *ticket);
/* local debug functions */ /* local debug functions */
#if defined(DEBUG) && !defined(XLOG_NOLOG) #if defined(DEBUG) && !defined(XLOG_NOLOG)
STATIC void xlog_verify_dest_ptr(xlog_t *log, __psint_t ptr); STATIC void xlog_verify_dest_ptr(xlog_t *log, __psint_t ptr);
#ifdef XFSDEBUG
STATIC void xlog_verify_disk_cycle_no(xlog_t *log, xlog_in_core_t *iclog); STATIC void xlog_verify_disk_cycle_no(xlog_t *log, xlog_in_core_t *iclog);
#endif
STATIC void xlog_verify_grant_head(xlog_t *log, int equals); STATIC void xlog_verify_grant_head(xlog_t *log, int equals);
STATIC void xlog_verify_iclog(xlog_t *log, xlog_in_core_t *iclog, STATIC void xlog_verify_iclog(xlog_t *log, xlog_in_core_t *iclog,
int count, boolean_t syncing); int count, boolean_t syncing);
...@@ -3253,7 +3251,7 @@ xlog_verify_dest_ptr(xlog_t *log, ...@@ -3253,7 +3251,7 @@ xlog_verify_dest_ptr(xlog_t *log,
} /* xlog_verify_dest_ptr */ } /* xlog_verify_dest_ptr */
#ifdef XFSDEBUG #ifdef DEBUG
/* check split LR write */ /* check split LR write */
STATIC void STATIC void
xlog_verify_disk_cycle_no(xlog_t *log, xlog_verify_disk_cycle_no(xlog_t *log,
......
...@@ -48,11 +48,11 @@ STATIC xfs_log_item_t * xfs_ail_delete(xfs_ail_entry_t *, xfs_log_item_t *); ...@@ -48,11 +48,11 @@ STATIC xfs_log_item_t * xfs_ail_delete(xfs_ail_entry_t *, xfs_log_item_t *);
STATIC xfs_log_item_t * xfs_ail_min(xfs_ail_entry_t *); STATIC xfs_log_item_t * xfs_ail_min(xfs_ail_entry_t *);
STATIC xfs_log_item_t * xfs_ail_next(xfs_ail_entry_t *, xfs_log_item_t *); STATIC xfs_log_item_t * xfs_ail_next(xfs_ail_entry_t *, xfs_log_item_t *);
#ifdef XFSDEBUG #ifdef DEBUG
STATIC void xfs_ail_check(xfs_ail_entry_t *); STATIC void xfs_ail_check(xfs_ail_entry_t *);
#else #else
#define xfs_ail_check(a) #define xfs_ail_check(a)
#endif /* XFSDEBUG */ #endif /* DEBUG */
/* /*
...@@ -553,7 +553,7 @@ xfs_ail_next( ...@@ -553,7 +553,7 @@ xfs_ail_next(
} }
#ifdef XFSDEBUG #ifdef DEBUG
/* /*
* Check that the list is sorted as it should be. * Check that the list is sorted as it should be.
*/ */
...@@ -593,4 +593,4 @@ xfs_ail_check( ...@@ -593,4 +593,4 @@ xfs_ail_check(
ASSERT(lip == (xfs_log_item_t*)base); ASSERT(lip == (xfs_log_item_t*)base);
ASSERT(base->ail_back == prev_lip); ASSERT(base->ail_back == prev_lip);
} }
#endif /* XFSDEBUG */ #endif /* DEBUG */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment