1 /* 2 * Copyright 2017, Chế Vũ Gia Hy, cvghy116@gmail.com. 3 * Copyright 2011, Jérôme Duval, korli@users.berlios.de. 4 * Copyright 2008-2014, Axel Dörfler, axeld@pinc-software.de. 5 * Copyright 2005-2007, Ingo Weinhold, bonefish@cs.tu-berlin.de. 6 * Copyright 2020, Shubham Bhagat, shubhambhagat111@yahoo.com 7 * This file may be used under the terms of the MIT License. 8 */ 9 #ifndef _DEBUG_H_ 10 #define _DEBUG_H_ 11 12 #ifdef TRACE_XFS 13 #define TRACE(x...) dprintf("\n\33[34mxfs:\33[0m " x) 14 #define ASSERT(x) \ 15 { if (!(x)) kernel_debugger("xfs: assert failed: " #x "\n"); } 16 #else 17 #define TRACE(x...) 18 #define ASSERT(x) 19 #endif 20 #define ERROR(x...) dprintf("\n\33[34mxfs:\33[0m " x) 21 22 #endif 23