Re: [PATCH v4 02/28] printk: Add print format (%pra) for struct range
From: Ira Weiny
Date: Thu Oct 17 2024 - 16:58:23 EST
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.