summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRaymond Mao <raymond.mao@linaro.org>2024-05-16 14:11:52 -0700
committerTom Rini <trini@konsulko.com>2024-05-22 08:55:29 -0600
commitcb73fe9eeae0d71a74eef811b0ba34aaf5513dbe (patch)
treeefb46ac2604f9eccde6e9bc65e1d73dfd8d35854 /lib
parent0fe031dd722079cd076cc120d45e1711eb108fe3 (diff)
downloadu-boot-cb73fe9eeae0d71a74eef811b0ba34aaf5513dbe.tar.gz
u-boot-cb73fe9eeae0d71a74eef811b0ba34aaf5513dbe.tar.bz2
u-boot-cb73fe9eeae0d71a74eef811b0ba34aaf5513dbe.zip
include: Move snprintf to stdio.h
Move snprintf to stdio.h since it is needed by exteranl libraries. Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/display_options.c1
-rw-r--r--lib/fwu_updates/fwu_mtd.c2
-rw-r--r--lib/hexdump.c2
-rw-r--r--lib/vsprintf.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/lib/display_options.c b/lib/display_options.c
index d6b93553dc..d5df53ab15 100644
--- a/lib/display_options.c
+++ b/lib/display_options.c
@@ -12,6 +12,7 @@
#include <linux/ctype.h>
#include <linux/kernel.h>
#include <asm/io.h>
+#include <stdio.h>
#include <vsprintf.h>
char *display_options_get_banner_priv(bool newlines, const char *build_tag,
diff --git a/lib/fwu_updates/fwu_mtd.c b/lib/fwu_updates/fwu_mtd.c
index 69cd3d7001..4a52834b61 100644
--- a/lib/fwu_updates/fwu_mtd.c
+++ b/lib/fwu_updates/fwu_mtd.c
@@ -11,7 +11,7 @@
#include <malloc.h>
#include <mtd.h>
#include <uuid.h>
-#include <vsprintf.h>
+#include <stdio.h>
#include <dm/ofnode.h>
diff --git a/lib/hexdump.c b/lib/hexdump.c
index 33e3e6e518..2bc508ff50 100644
--- a/lib/hexdump.c
+++ b/lib/hexdump.c
@@ -10,7 +10,7 @@
#include <hexdump.h>
#include <mapmem.h>
-#include <vsprintf.h>
+#include <stdio.h>
#include <linux/ctype.h>
#include <linux/compat.h>
#include <linux/log2.h>
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 27ea9c907a..cfd1f1914e 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -19,6 +19,7 @@
#include <hexdump.h>
#include <stdarg.h>
#include <uuid.h>
+#include <stdio.h>
#include <vsprintf.h>
#include <linux/ctype.h>
#include <linux/err.h>