26 lines
477 B
C
26 lines
477 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* common/ini/ini_log.c
|
|
*
|
|
* Copyright (C) 2020 Amlogic, Inc. All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#include "ini_config.h"
|
|
|
|
#include "ini_log.h"
|
|
|
|
#if (defined CC_COMPILE_IN_PC || defined CC_COMPILE_IN_UBOOT)
|
|
static int gLogLevel = INI_LOG_DEFAULT;
|
|
|
|
int ini_set_log_level(int log_level) {
|
|
int tmp_level = gLogLevel;
|
|
gLogLevel = log_level;
|
|
return tmp_level;
|
|
}
|
|
|
|
int ini_get_log_level(void) {
|
|
return gLogLevel;
|
|
}
|
|
#endif
|