![Thomas Gleixner](/assets/img/avatar_default.png)
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
52 lines
1.2 KiB
C
52 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* drivers/media/platform/s5p-mfc/s5p_mfc_debug.h
|
|
*
|
|
* Header file for Samsung MFC (Multi Function Codec - FIMV) driver
|
|
* This file contains debug macros
|
|
*
|
|
* Kamil Debski, Copyright (c) 2011 Samsung Electronics
|
|
* http://www.samsung.com/
|
|
*/
|
|
|
|
#ifndef S5P_MFC_DEBUG_H_
|
|
#define S5P_MFC_DEBUG_H_
|
|
|
|
#define DEBUG
|
|
|
|
#ifdef DEBUG
|
|
extern int mfc_debug_level;
|
|
|
|
#define mfc_debug(level, fmt, args...) \
|
|
do { \
|
|
if (mfc_debug_level >= level) \
|
|
printk(KERN_DEBUG "%s:%d: " fmt, \
|
|
__func__, __LINE__, ##args); \
|
|
} while (0)
|
|
#else
|
|
#define mfc_debug(level, fmt, args...)
|
|
#endif
|
|
|
|
#define mfc_debug_enter() mfc_debug(5, "enter\n")
|
|
#define mfc_debug_leave() mfc_debug(5, "leave\n")
|
|
|
|
#define mfc_err(fmt, args...) \
|
|
do { \
|
|
printk(KERN_ERR "%s:%d: " fmt, \
|
|
__func__, __LINE__, ##args); \
|
|
} while (0)
|
|
|
|
#define mfc_err_limited(fmt, args...) \
|
|
do { \
|
|
printk_ratelimited(KERN_ERR "%s:%d: " fmt, \
|
|
__func__, __LINE__, ##args); \
|
|
} while (0)
|
|
|
|
#define mfc_info(fmt, args...) \
|
|
do { \
|
|
printk(KERN_INFO "%s:%d: " fmt, \
|
|
__func__, __LINE__, ##args); \
|
|
} while (0)
|
|
|
|
#endif /* S5P_MFC_DEBUG_H_ */
|