diff options
author | John Ogness <[email protected]> | 2021-03-03 11:15:18 +0100 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2021-03-08 11:43:05 +0100 |
commit | 726b5097701a8d46f5354be780e1a11fc4ca1187 (patch) | |
tree | 161c5ccbd684c5de992742078b81c68d117aa172 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | e831e400f73b0e7aa4629200c2ef71e068262414 (diff) |
printk: refactor kmsg_dump_get_buffer()
kmsg_dump_get_buffer() requires nearly the same logic as
syslog_print_all(), but uses different variable names and
does not make use of the ringbuffer loop macros. Modify
kmsg_dump_get_buffer() so that the implementation is as similar
to syslog_print_all() as possible.
A follow-up commit will move this common logic into a
separate helper function.
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions