diff options
author | John Ogness <john.ogness@linutronix.de> | 2021-03-03 13:15:19 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-03-08 13:43:09 +0300 |
commit | 4260e0e5510158d704898603331e5365ebe957de (patch) | |
tree | 41aeee1ceed4a13329ff602ef230d68a9b643b8c /scripts/gdb/linux/tasks.py | |
parent | 726b5097701a8d46f5354be780e1a11fc4ca1187 (diff) | |
download | linux-4260e0e5510158d704898603331e5365ebe957de.tar.xz |
printk: consolidate kmsg_dump_get_buffer/syslog_print_all code
The logic for finding records to fit into a buffer is the same for
kmsg_dump_get_buffer() and syslog_print_all(). Introduce a helper
function find_first_fitting_seq() to handle this logic.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210303101528.29901-7-john.ogness@linutronix.de
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions