feat(log): Added PRIuSIZE printf formatter macro

This commit is contained in:
Jakob Hasse
2024-03-19 14:53:57 +08:00
parent 53e3833f44
commit e4aa326c3a
6 changed files with 56 additions and 0 deletions

View File

@@ -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)

View File

@@ -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.

View File

@@ -0,0 +1,2 @@
idf_component_register(SRCS "generic_build_test.c"
INCLUDE_DIRS ".")

View File

@@ -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
}