1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-19 12:55:08 +00:00
Sergey Senozhatsky 96928d9032 seq_buf: Add seq_buf_do_printk() helper
Sometimes we use seq_buf to format a string buffer, which
we then pass to printk(). However, in certain situations
the seq_buf string buffer can get too big, exceeding the
PRINTKRB_RECORD_MAX bytes limit, and causing printk() to
truncate the string.

Add a new seq_buf helper. This helper prints the seq_buf
string buffer line by line, using \n as a delimiter,
rather than passing the whole string buffer to printk()
at once.

Link: https://lkml.kernel.org/r/20230415100110.1419872-1-senozhatsky@chromium.org

Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-04-25 21:03:14 -04:00
..
2023-02-24 17:18:54 -08:00
2023-02-27 10:04:49 -08:00
2023-02-22 11:05:56 -08:00
2023-02-22 14:21:40 -08:00
2023-02-24 15:11:03 -08:00
2023-02-24 15:11:03 -08:00
2023-02-27 09:47:26 -08:00
2023-02-25 11:30:21 -08:00
2023-02-24 17:12:23 -08:00
2023-02-27 10:04:49 -08:00
2023-02-24 17:29:52 -08:00
2023-02-24 12:58:55 -08:00
2023-02-24 12:58:55 -08:00
2023-03-05 10:49:37 -08:00
2023-02-25 11:30:21 -08:00
2023-02-24 17:18:54 -08:00
2023-03-13 10:14:05 +01:00
2023-02-24 12:58:55 -08:00
2023-02-20 12:33:41 -08:00
2023-03-07 01:50:53 -05:00
2023-02-24 12:58:55 -08:00
2023-02-22 12:36:25 -08:00
2023-02-22 13:50:13 -08:00
2023-02-24 14:34:12 -08:00
2023-02-24 14:34:12 -08:00
2023-02-23 14:05:08 -08:00
2023-02-23 14:00:10 -08:00
2023-02-22 14:21:40 -08:00
2023-02-22 14:47:20 -08:00
2023-03-15 14:58:52 +01:00
2023-02-24 13:31:53 -08:00
2023-02-25 11:48:02 -08:00
2023-02-23 13:43:23 +01:00
2023-02-21 18:24:12 -08:00
2023-03-14 17:07:54 -07:00
2023-02-20 19:26:58 -05:00