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