2 * linux/drivers/media/video/samsung/mfc5x/mfc_log.h
4 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
7 * Logging interface for Samsung MFC (Multi Function Codec - FIMV) driver
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
15 #define __MFC_LOG_H __FILE__
18 #define MFC_DEBUG(fmt, ...) \
21 "%s-> " fmt, __func__, ##__VA_ARGS__); \
24 #define MFC_ERROR(fmt, ...) \
27 "%s-> " fmt, __func__, ##__VA_ARGS__); \
30 #define MFC_NOTICE(fmt, ...) \
33 fmt, ##__VA_ARGS__); \
36 #define MFC_INFO(fmt, ...) \
39 fmt, ##__VA_ARGS__); \
42 #define MFC_WARN(fmt, ...) \
45 fmt, ##__VA_ARGS__); \
48 #ifdef CONFIG_VIDEO_MFC5X_DEBUG
49 #define mfc_dbg(fmt, ...) MFC_DEBUG(fmt, ##__VA_ARGS__)
51 #define mfc_dbg(fmt, ...)
54 #define mfc_err(fmt, ...) MFC_ERROR(fmt, ##__VA_ARGS__)
55 #define mfc_notice(fmt, ...) MFC_NOTICE(fmt, ##__VA_ARGS__)
56 #define mfc_info(fmt, ...) MFC_INFO(fmt, ##__VA_ARGS__)
57 #define mfc_warn(fmt, ...) MFC_WARN(fmt, ##__VA_ARGS__)
59 #endif /* __MFC_LOG_H */