seq_file: Add a seq_bprintf function
authorFlorent Revest <revest@chromium.org>
Tue, 27 Apr 2021 17:43:12 +0000 (19:43 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 27 Apr 2021 22:50:15 +0000 (15:50 -0700)
commit76d6a13383b8e3ff20a9cf52aa9c3de39e485632
treea514ff10079e19e036815347ddca67d30771300e
parent2551c2d19c04cd1c7b6c99ec04a8ff08193b0ccc
seq_file: Add a seq_bprintf function

Similarly to seq_buf_bprintf in lib/seq_buf.c, this function writes a
printf formatted string with arguments provided in a "binary
representation" built by functions such as vbin_printf.

Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210427174313.860948-2-revest@chromium.org
fs/seq_file.c
include/linux/seq_file.h