summaryrefslogtreecommitdiffstats
path: root/common/state
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-10-30 16:17:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-01 10:08:38 +0100
commit23bb859cfcefe5225851b00deaf7b61189b8c06d (patch)
tree882de86cfbc9eab8e7e6803e28b42f91a84432dc /common/state
parent43cbf3f0b718a8c8b0cfc4bb351dde39c6ea9b05 (diff)
downloadbarebox-23bb859cfcefe5225851b00deaf7b61189b8c06d.tar.gz
barebox-23bb859cfcefe5225851b00deaf7b61189b8c06d.tar.xz
include: add dedicated header for printf/printk
Including <stdio.h> for printf is a bit problematic, because it pulls in other headers for <console.h>, which includes quite a few more headers as well. To make it easier to share code between barebox and host tools make <printk.h> the new minimal header for printf and move the extra logging stuff into <linux/printk.h>. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211030141739.2207431-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state')
-rw-r--r--common/state/backend_bucket_direct.c2
-rw-r--r--common/state/backend_storage.c2
-rw-r--r--common/state/state_variables.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/common/state/backend_bucket_direct.c b/common/state/backend_bucket_direct.c
index 4522f0170f..517aec6063 100644
--- a/common/state/backend_bucket_direct.c
+++ b/common/state/backend_bucket_direct.c
@@ -17,7 +17,7 @@
#include <libfile.h>
#include <linux/kernel.h>
#include <malloc.h>
-#include <printk.h>
+#include <linux/printk.h>
#include "state.h"
diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c
index fe7e89e8fb..7fc7acfdcb 100644
--- a/common/state/backend_storage.c
+++ b/common/state/backend_storage.c
@@ -21,7 +21,7 @@
#include <linux/mtd/mtd-abi.h>
#include <sys/stat.h>
#include <malloc.h>
-#include <printk.h>
+#include <linux/printk.h>
#include "state.h"
diff --git a/common/state/state_variables.c b/common/state/state_variables.c
index 66c66f38bd..f112c60bf6 100644
--- a/common/state/state_variables.c
+++ b/common/state/state_variables.c
@@ -21,7 +21,7 @@
#include <linux/types.h>
#include <malloc.h>
#include <net.h>
-#include <printk.h>
+#include <linux/printk.h>
#include <of.h>
#include <stdio.h>