Blame libhugetlbfs_debug.h

Packit 2d622a
/*
Packit 2d622a
 * libhugetlbfs - Easy use of Linux hugepages
Packit 2d622a
 * Copyright (C) 2008 IBM Corporation.
Packit 2d622a
 * Author: Andy Whitcroft
Packit 2d622a
 *
Packit 2d622a
 * This library is free software; you can redistribute it and/or
Packit 2d622a
 * modify it under the terms of the GNU Lesser General Public License
Packit 2d622a
 * as published by the Free Software Foundation; either version 2.1 of
Packit 2d622a
 * the License, or (at your option) any later version.
Packit 2d622a
 *
Packit 2d622a
 * This library is distributed in the hope that it will be useful, but
Packit 2d622a
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 2d622a
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 2d622a
 * Lesser General Public License for more details.
Packit 2d622a
 *
Packit 2d622a
 * You should have received a copy of the GNU Lesser General Public
Packit 2d622a
 * License along with this library; if not, write to the Free Software
Packit 2d622a
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Packit 2d622a
 */
Packit 2d622a
#ifndef _LIBHUGETLBFS_DEBUG_H
Packit 2d622a
#define _LIBHUGETLBFS_DEBUG_H
Packit 2d622a
Packit 2d622a
/* Severe, unrecoverable errors */
Packit 2d622a
#define ERROR(...)		REPORT(1, "ERROR", ##__VA_ARGS__)
Packit 2d622a
#define ERROR_CONT(...)		REPORT_CONT(1, "ERROR", ##__VA_ARGS__)
Packit 2d622a
Packit 2d622a
/* A condition that is recoverable, but may result in altered semantics */
Packit 2d622a
#define WARNING(...)		REPORT(2, "WARNING", ##__VA_ARGS__)
Packit 2d622a
#define WARNING_CONT(...)	REPORT_CONT(2, "WARNING", ##__VA_ARGS__)
Packit 2d622a
Packit 2d622a
/* Detailed information about normal library operations */
Packit 2d622a
#define INFO(...)		REPORT(3, "INFO", ##__VA_ARGS__)
Packit 2d622a
#define INFO_CONT(...)		REPORT_CONT(3, "INFO", ##__VA_ARGS__)
Packit 2d622a
Packit 2d622a
/* Diagnostic information used for debugging problems */
Packit 2d622a
#define DEBUG(...)		REPORT(4, "DEBUG", ##__VA_ARGS__)
Packit 2d622a
#define DEBUG_CONT(...)		REPORT_CONT(4, "DEBUG", ##__VA_ARGS__)
Packit 2d622a
Packit 2d622a
#define VERBOSITY_MAX 4
Packit 2d622a
#define VERBOSITY_DEFAULT 2
Packit 2d622a
Packit 2d622a
#endif