1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <stdio.h>
8 #include "cc_pal_types.h"
9 #include "cc_pal_log.h"
10 #include <stdarg.h>
11 
12 int CC_PAL_logLevel = CC_PAL_MAX_LOG_LEVEL;
13 uint32_t CC_PAL_logMask = 0xFFFFFFFF;
14 
CC_PalLogInit(void)15 void CC_PalLogInit(void)
16 {
17 }
18 
CC_PalLogLevelSet(int setLevel)19 void CC_PalLogLevelSet(int setLevel)
20 {
21     CC_PAL_logLevel = setLevel;
22 }
23 
CC_PalLogMaskSet(uint32_t setMask)24 void CC_PalLogMaskSet(uint32_t setMask)
25 {
26     CC_PAL_logMask = setMask;
27 }
28 
CC_PalLog(int level,const char * format,...)29 void CC_PalLog(int level, const char * format, ...)
30 {
31     va_list args;
32     CC_UNUSED_PARAM(level);
33     va_start( args, format );
34     vprintf(format, args);
35     va_end(args);
36 }
37