Line data Source code
1 : /** 2 : * Copyright (c) 2025 Huawei Technologies Co., Ltd. 3 : * This program is free software, you can redistribute it and/or modify it under the terms and conditions of 4 : * CANN Open Software License Agreement Version 2.0 (the "License"). 5 : * Please refer to the License for details. You may not use this file except in compliance with the License. 6 : * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, 7 : * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. 8 : * See LICENSE in the root of the software repository for the full text of the License. 9 : */ 10 : #include <cstdarg> 11 : #include "set_device_vxx.h" 12 : #include "acl_rt_impl.h" 13 : 14 189 : ACL_FUNC_MAP(ACL_RT_CPP) 15 : 16 1264 : ACL_RT_FUNC_MAP(ACL_RT_CPP) 17 : 18 65 : ACL_MDLRI_FUNC_MAP(ACL_RT_CPP) 19 : 20 23 : ACL_MDL_FUNC_MAP(ACL_RT_CPP) 21 : 22 18 : ACL_RT_ALLOCATOR_FUNC_MAP(ACL_RT_CPP) 23 : 24 6 : void aclAppLog(aclLogLevel logLevel, const char *func, const char *file, uint32_t line, const char *fmt, ...) 25 : { 26 6 : va_list args; 27 6 : va_start(args, fmt); 28 6 : aclAppLogImpl(logLevel, func, file, line, fmt, args); 29 6 : va_end(args); 30 6 : } 31 : 32 1 : extern "C" ACL_FUNC_VISIBILITY void aclAppLogWithArgs(aclLogLevel logLevel, const char *func, const char *file, uint32_t line, const char *fmt, va_list args) 33 : { 34 1 : aclAppLogImpl(logLevel, func, file, line, fmt, args); 35 1 : }