2 * drivers/media/platform/samsung/mfc5/s5p_mfc_debug.h
4 * Header file for Samsung MFC (Multi Function Codec - FIMV) driver
5 * This file contains debug macros
7 * Kamil Debski, Copyright (c) 2011 Samsung Electronics
8 * http://www.samsung.com/
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #ifndef S5P_MFC_DEBUG_H_
16 #define S5P_MFC_DEBUG_H_
23 #define mfc_debug(level, fmt, args...) \
26 printk(KERN_DEBUG "%s:%d: " fmt, \
27 __func__, __LINE__, ##args); \
30 #define mfc_debug(level, fmt, args...)
33 #define mfc_debug_enter() mfc_debug(5, "enter")
34 #define mfc_debug_leave() mfc_debug(5, "leave")
36 #define mfc_err(fmt, args...) \
38 printk(KERN_ERR "%s:%d: " fmt, \
39 __func__, __LINE__, ##args); \
42 #define mfc_info(fmt, args...) \
44 printk(KERN_INFO "%s:%d: " fmt, \
45 __func__, __LINE__, ##args); \
48 #endif /* S5P_MFC_DEBUG_H_ */