summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-10-02 12:45:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-10-08 08:36:58 +0200
commite8909590f73932f944d92ab6f23cd4d32ed0c838 (patch)
tree1a1545b04bda678cbaf7899089c6410051539949 /include
parentca079cf77f7b231b961eb557ccbe154d774967be (diff)
downloadbarebox-e8909590f73932f944d92ab6f23cd4d32ed0c838.tar.gz
barebox-e8909590f73932f944d92ab6f23cd4d32ed0c838.tar.xz
vsprintf: implement %pV
%pV allows to pass in a struct va_format as a pointer. UBIFS uses this for its logging functions, but it may be useful in other places aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/printk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/printk.h b/include/printk.h
index b4ae0b3217..4384fb85ea 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -120,4 +120,9 @@ extern void log_clean(unsigned int limit);
void log_print(unsigned flags);
+struct va_format {
+ const char *fmt;
+ va_list *va;
+};
+
#endif