1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: NV Storage Library debug 15 */ 16 17 #include "nv_debug.h" 18 #include "nv_porting.h" 19 #include "common_def.h" 20 21 STATIC uint32_t g_nv_debug_level = NV_LOG_LEVEL_INFO; 22 nv_get_debug_level(void)23uint32_t nv_get_debug_level(void) 24 { 25 return g_nv_debug_level; 26 } 27 nv_set_debug_level(uint32_t level)28void nv_set_debug_level(uint32_t level) 29 { 30 g_nv_debug_level = level; 31 } 32