Debian Codegraph @

libhugetlbfs_debug.h

raw symbols SCIP
1 /*
2 * libhugetlbfs - Easy use of Linux hugepages
3 * Copyright (C) 2008 IBM Corporation.
4 * Author: Andy Whitcroft
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1 of
9 * the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 #ifndef _LIBHUGETLBFS_DEBUG_H
21 #define _LIBHUGETLBFS_DEBUG_H
22
23 /* Severe, unrecoverable errors */
24 #define ERROR(...) REPORT(1, "ERROR", ##__VA_ARGS__)
25 #define ERROR_CONT(...) REPORT_CONT(1, "ERROR", ##__VA_ARGS__)
26
27 /* A condition that is recoverable, but may result in altered semantics */
28 #define WARNING(...) REPORT(2, "WARNING", ##__VA_ARGS__)
29 #define WARNING_CONT(...) REPORT_CONT(2, "WARNING", ##__VA_ARGS__)
30
31 /* Detailed information about normal library operations */
32 #define INFO(...) REPORT(3, "INFO", ##__VA_ARGS__)
33 #define INFO_CONT(...) REPORT_CONT(3, "INFO", ##__VA_ARGS__)
34
35 /* Diagnostic information used for debugging problems */
36 #define DEBUG(...) REPORT(4, "DEBUG", ##__VA_ARGS__)
37 #define DEBUG_CONT(...) REPORT_CONT(4, "DEBUG", ##__VA_ARGS__)
38
39 #define VERBOSITY_MAX 4
40 #define VERBOSITY_DEFAULT 2
41
42 #endif