]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/staging/ccree/cc_pal_log_plat.h
Merge branch 'work.iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[karo-tx-linux.git] / drivers / staging / ccree / cc_pal_log_plat.h
1 /*
2  * Copyright (C) 2012-2017 ARM Limited or its affiliates.
3  * 
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  * 
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  * 
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, see <http://www.gnu.org/licenses/>.
15  */
16
17 /* Dummy pal_log_plat for test driver in kernel */
18
19 #ifndef _SSI_PAL_LOG_PLAT_H_
20 #define _SSI_PAL_LOG_PLAT_H_
21
22 #if defined(DEBUG)
23
24 #define __CC_PAL_LOG_PLAT(level, format, ...) printk(level "cc7x_test::" format , ##__VA_ARGS__)
25
26 #else /* Disable all prints */
27
28 #define __CC_PAL_LOG_PLAT(...)  do {} while (0)
29
30 #endif
31
32 #endif /*_SASI_PAL_LOG_PLAT_H_*/
33