aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <[email protected]>2023-04-15 19:01:10 +0900
committerSteven Rostedt (Google) <[email protected]>2023-04-25 21:03:14 -0400
commit96928d9032a7c34f12a88df879665562bcebf59a (patch)
treeb25e52ee726d90ad73a4591b2eafa67d5cd3ae85 /lib/mpi/mpi-mod.c
parentc7bdb07902e0b633795372665d0154e7267ecd0e (diff)
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/[email protected] Cc: Andrew Morton <[email protected]> Signed-off-by: Sergey Senozhatsky <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Tested-by: Yosry Ahmed <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions