linux/include/linux/ceph/ceph_debug.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _FS_CEPH_DEBUG_H
#define _FS_CEPH_DEBUG_H

#define pr_fmt(fmt)

#include <linux/string.h>

#ifdef CONFIG_CEPH_LIB_PRETTYDEBUG

/*
 * wrap pr_debug to include a filename:lineno prefix on each line.
 * this incurs some overhead (kernel size and execution time) due to
 * the extra function call at each call site.
 */

# if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG)
#define dout(fmt, ...)
#define doutc(client, fmt, ...)
# else
/* faux printk call just to see any compiler warnings. */
#define dout
#define doutc
# endif

#else

/*
 * or, just wrap pr_debug
 */
#define dout
#define doutc

#endif

#define pr_notice_client(client, fmt, ...)
#define pr_info_client(client, fmt, ...)
#define pr_warn_client(client, fmt, ...)
#define pr_warn_once_client(client, fmt, ...)
#define pr_err_client(client, fmt, ...)
#define pr_warn_ratelimited_client(client, fmt, ...)
#define pr_err_ratelimited_client(client, fmt, ...)

#endif