Merge branch 'bugfix/move_lib_printf_esp_phy' into 'master'

Bugfix:Move lib_printf.c to esp_phy

See merge request espressif/esp-idf!16728
This commit is contained in:
Jiang Jiang Jian 2022-01-11 04:07:34 +00:00
commit 8b38fe6dda
3 changed files with 7 additions and 15 deletions

View File

@ -18,6 +18,7 @@ if(IDF_TARGET STREQUAL "esp32h2")
else()
set(srcs "src/phy_init.c")
endif()
list(APPEND srcs "src/lib_printf.c")
idf_build_get_property(build_dir BUILD_DIR)

View File

@ -1,16 +1,8 @@
// Copyright 2016 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*
* SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file lib_printf.c
@ -142,7 +134,7 @@ int wapi_printf(const char* format, ...)
{
va_list arg;
va_start(arg, format);
int res = lib_printf("coexist", format, arg);
int res = lib_printf("wapi", format, arg);
va_end(arg);
return res;
}

View File

@ -18,7 +18,6 @@ if(CONFIG_ESP32_WIFI_ENABLED)
set(srcs
"src/coexist.c"
"src/lib_printf.c"
"src/mesh_event.c"
"src/smartconfig.c"
"src/smartconfig_ack.c"