From d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:45:28 +0000 Subject: [PATCH] add boot partition size --- kernel/include/linux/seq_buf.h | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/kernel/include/linux/seq_buf.h b/kernel/include/linux/seq_buf.h index aa5deb0..9d6c28c 100644 --- a/kernel/include/linux/seq_buf.h +++ b/kernel/include/linux/seq_buf.h @@ -30,7 +30,7 @@ } static inline void -seq_buf_init(struct seq_buf *s, unsigned char *buf, unsigned int size) +seq_buf_init(struct seq_buf *s, char *buf, unsigned int size) { s->buffer = buf; s->size = size; @@ -125,6 +125,9 @@ extern int seq_buf_putmem_hex(struct seq_buf *s, const void *mem, unsigned int len); extern int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc); +extern int seq_buf_hex_dump(struct seq_buf *s, const char *prefix_str, + int prefix_type, int rowsize, int groupsize, + const void *buf, size_t len, bool ascii); #ifdef CONFIG_BINARY_PRINTF extern int -- Gitblit v1.6.2