Messages in this thread | | | From | John Ogness <> | Subject | Re: [PATCH printk v2 5/7] printk: Use struct console_buffers | Date | Thu, 24 Nov 2022 21:35:33 +0106 |
| |
On 2022-11-24, Petr Mladek <pmladek@suse.com> wrote: > A better solution would be to remove DROPPED_TEXT_MAX completely > and pass the buffer size to call_console_driver().
And then call:
call_cosole_driver(con, text, len, dropped_text, DROPPED_TEXT_MAX);
Is that better? We do not want to pass the actual buffer size because the buffer is shared with the regular messages.
Later in this series the dropped messages are handled in quite a different way, so maybe this mid-series solution is acceptable. But even by the end of this series DROPPED_TEXT_MAX still exists just to put a limit on the dropped messages length, even if more buffer space exists.
John
| |