Re: [PATCH] vsprintf/doc: Document format flags including field width and precision

From: John Ogness
Date: Wed May 24 2023 - 04:10:54 EST


On 2023-05-22, Petr Mladek <pmladek@xxxxxxxx> wrote:
> +Examples::

> + printk("Dynamic table: |%*d|%*s|\n", id_width, id, max_name_len, name);

> + printk("Dynamic precision: %.*f\n", precision, value);

Generally speaking, it is rare to use printk() without a loglevel
specified. And it is preferred that the pr_ or dev_ macros are
used. Perhaps the examples should call pr_info() instead?

John Ogness