Messages in this thread | | | Subject | Re: [RFC PATCH 1/5] printk: implement pr_cont_t | From | Joe Perches <> | Date | Thu, 20 Aug 2020 00:59:30 -0700 |
| |
On Thu, 2020-08-20 at 07:44 +0000, David Laight wrote: > I've no idea how you'd 'size' the number of buffers.
I believe they are static and assume no more than 10 simultaneous uses of printk_begin
+#define CONT_LINE_MAX LOG_LINE_MAX +#define CONT_BUF_COUNT 10 +static char cont_buf[CONT_BUF_COUNT][CONT_LINE_MAX]; +static DECLARE_BITMAP(cont_buf_map, CONT_BUF_COUNT);
Though I don't see much value in a separate define for CONT_LINE_MAx
| |