Re: [PATCH v4 02/28] printk: Add print format (%pra) for struct range

Bagas Sanjaya
2024-10-25T12:42:55Z

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

On Thu, Oct 17, 2024 at 03:57:50PM -0500, Ira Weiny wrote:
> Bagas Sanjaya wrote:
> > On Mon, Oct 07, 2024 at 06:16:08PM -0500, Ira Weiny wrote:
> > > +Struct Range
> > > +------------
> > > +
> > > +::
> > > +
> > > + %pra [range 0x0000000060000000-0x000000006fffffff]
> > > + %pra [range 0x0000000060000000]
> > > +
> > > +For printing struct range. struct range holds an arbitrary range of u64
> > > +values. If start is equal to end only 1 value is printed.
> >
> > Do you mean printing only start value in start=equal case?
>
> Yes I'll change the verbiage.
>
> Ira
>
> diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst
> index 03b102fc60bb..e1ebf0376154 100644
> --- a/Documentation/core-api/printk-formats.rst
> +++ b/Documentation/core-api/printk-formats.rst
> @@ -240,7 +240,7 @@ Struct Range
> %pra [range 0x0000000060000000]
>
> For printing struct range. struct range holds an arbitrary range of u64
> -values. If start is equal to end only 1 value is printed.
> +values. If start is equal to end only print the start value.
>
> Passed by reference.

That's nice, thanks!

--
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]