3 * @brief Debugging Macros
5 * Copyright (C) 2006 Nokia Corporation
7 * Contact: Eduardo Bezerra Valentin <eduardo.valentin@indt.org.br>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the
21 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 * Boston, MA 02111-1307, USA.
30 #define DEBUG_OUTPUT stderr
31 #define DPRINT(fmt,arg...) fprintf(DEBUG_OUTPUT, "%s(): " fmt,\
33 #define DENTER() fprintf(DEBUG_OUTPUT, "ENTER %s()\n", __FUNCTION__)
34 #define DLEAVE(a) fprintf(DEBUG_OUTPUT, "LEAVE %s() %d\n", __FUNCTION__, a)
36 #define DPRINT(fmt,arg...) do { } while (0)
37 #define DENTER() do { } while (0)
38 #define DLEAVE(a) do { } while (0)
43 /* #undef ERROR_DEBUG */
45 #define DERROR(fmt,arg...) fprintf(stderr, "%s(): " fmt, \
48 #define DERROR(fmt,arg...) \