hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/linux/seq_buf.h
....@@ -30,7 +30,7 @@
3030 }
3131
3232 static inline void
33
-seq_buf_init(struct seq_buf *s, unsigned char *buf, unsigned int size)
33
+seq_buf_init(struct seq_buf *s, char *buf, unsigned int size)
3434 {
3535 s->buffer = buf;
3636 s->size = size;
....@@ -125,6 +125,9 @@
125125 extern int seq_buf_putmem_hex(struct seq_buf *s, const void *mem,
126126 unsigned int len);
127127 extern int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc);
128
+extern int seq_buf_hex_dump(struct seq_buf *s, const char *prefix_str,
129
+ int prefix_type, int rowsize, int groupsize,
130
+ const void *buf, size_t len, bool ascii);
128131
129132 #ifdef CONFIG_BINARY_PRINTF
130133 extern int