mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 12:50:30 +00:00
feat(log): Added PRIuSIZE printf formatter macro
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# For more information about build system see
|
||||
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
|
||||
# The following five lines of boilerplate have to be in your project's
|
||||
# CMakeLists in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
set(COMPONENTS main)
|
||||
project(generic_build_test)
|
||||
@@ -0,0 +1,4 @@
|
||||
| Supported Targets | ESP32 | ESP32-C3 | Linux |
|
||||
| ----------------- | ----- | -------- | ----- |
|
||||
|
||||
This application is a build test. It checks that certain features can be used on different targets.
|
||||
@@ -0,0 +1,2 @@
|
||||
idf_component_register(SRCS "generic_build_test.c"
|
||||
INCLUDE_DIRS ".")
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include "inttypes_ext.h"
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
size_t size = 47;
|
||||
printf("size is: %" PRIuSIZE "\n", size); // test IDF's PRIuSIZE
|
||||
}
|
||||
Reference in New Issue
Block a user