debug.h revision 7e7bd3dccbfe8f79e25e5c1554b5bc3a9aaca321
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * debug.h - Debugging output functions. Part of the Linux-NTFS project.
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * Copyright (c) 2002-2004 Anton Altaparmakov
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * This program/include file is free software; you can redistribute it and/or
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * modify it under the terms of the GNU General Public License as published
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * by the Free Software Foundation; either version 2 of the License, or
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * (at your option) any later version.
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * This program/include file is distributed in the hope that it will be
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * GNU General Public License for more details.
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * You should have received a copy of the GNU General Public License
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * along with this program (in the main directory of the Linux-NTFS
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * distribution in the file COPYING); if not, write to the Free Software
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainenstatic __inline__ void ntfs_debug_runlist_dump(const struct _runlist_element *rl __attribute__((unused))) {}
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainenextern void ntfs_debug_runlist_dump(const struct _runlist_element *rl);
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen ntfs_log_critical("Bug in %s(): %s\n", __FUNCTION__, msg); \
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen ntfs_log_debug("Forcing segmentation fault!"); \
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen#else /* not __GNUC__ */
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen ntfs_log_critical("Bug in %s(): %s\n", "unknown", msg); \
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen ntfs_log_debug("Forcing segmentation fault!"); \
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen#endif /* __GNUC__ */
11d88fd444070c67d09fe17e4dcb6c319d8833c2Timo Sirainen#endif /* defined _NTFS_DEBUG_H */