]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib/Kconfig
lib/tiny-printf.c: Add tiny printf function for space limited environments
[people/ms/u-boot.git] / lib / Kconfig
index 30e84ed31537b46b9d5011cbbb153dab4e086a03..9d580e4115e6ac8218a8ca9e4801460010e53f1c 100644 (file)
@@ -36,6 +36,16 @@ config SYS_VSNPRINTF
          Thumb-2, about 420 bytes). Enable this option for safety when
          using sprintf() with data you do not control.
 
+config USE_TINY_PRINTF
+       bool "Enable tiny printf() version"
+       help
+         This option enables a tiny, stripped down printf version.
+         This should only be used in space limited environments,
+         like SPL versions with hard memory limits. This version
+         reduces the code size by about 2.5KiB on armv7.
+
+         The supported format specifiers are %c, %s, %u/%d and %x.
+
 config REGEX
        bool "Enable regular expression support"
        default y if NET