diff options
author | John Ogness <[email protected]> | 2021-01-13 17:50:13 +0106 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2021-01-15 11:32:52 +0100 |
commit | 89ccf18f032f26946e2ea6258120472eec6aa745 (patch) | |
tree | fa4804a4f423cfe28ee0d4c7b469716c8ab5bcf5 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 668af87f995b6d6d09595c088ad1fb5dd9ff25d2 (diff) |
printk: fix kmsg_dump_get_buffer length calulations
kmsg_dump_get_buffer() uses @syslog to determine if the syslog
prefix should be written to the buffer. However, when calculating
the maximum number of records that can fit into the buffer, it
always counts the bytes from the syslog prefix.
Use @syslog when calculating the maximum number of records that can
fit into the buffer.
Fixes: e2ae715d66bf ("kmsg - kmsg_dump() use iterator to receive log buffer content")
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Acked-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions