forked from Minki/linux
139adba64c
The 'debug' name is known to cause conflicts with allyesconfig on several archs. So, localize its name. >> drivers/built-in.o:(.bss+0xc7ee2c): multiple definition of `debug' arch/x86/built-in.o:(.entry.text+0xf78): first defined here ld: Warning: size of symbol `debug' changed from 86 in arch/x86/built-in.o to 4 in drivers/built-in.o While here, fix a wrong file name reference Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/*
|
|
* 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/
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#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_info(fmt, args...) \
|
|
do { \
|
|
printk(KERN_INFO "%s:%d: " fmt, \
|
|
__func__, __LINE__, ##args); \
|
|
} while (0)
|
|
|
|
#endif /* S5P_MFC_DEBUG_H_ */
|