From 47e09806c804fdb9bb4abfa1523593263b852ab4 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 12 Sep 2023 23:46:30 -0700 Subject: [PATCH] lib/os: With CBPRINTF_NANO, picolibc long-long printf isn't required CBPRINTF_FULL_INTEGRAL doesn't happen to explicitly conflict with CBPRINTF_NANO, but when CBPRINTF_NANO is enabled, there's no long long I/O support provided. Allow picolibc long-long I/O support to also be elided when CBPRINTF_NANO is enabled to save similar amounts of space. Signed-off-by: Keith Packard --- lib/os/Kconfig.cbprintf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/os/Kconfig.cbprintf b/lib/os/Kconfig.cbprintf index 93ffa90ca5d..777cd7d9cf6 100644 --- a/lib/os/Kconfig.cbprintf +++ b/lib/os/Kconfig.cbprintf @@ -31,7 +31,7 @@ choice CBPRINTF_INTEGRAL_CONV # 01: 0% / 0 B (01 / 00) config CBPRINTF_FULL_INTEGRAL bool "Convert the full range of integer values" - select PICOLIBC_IO_LONG_LONG if PICOLIBC + select PICOLIBC_IO_LONG_LONG if PICOLIBC && !CBPRINTF_NANO help Build cbprintf with buffers sized to support converting the full range of all integral and pointer values.