diff options
| author | Dave Jiang <dave.jiang@intel.com> | 2024-10-28 14:46:17 -0700 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2024-10-28 14:46:17 -0700 |
| commit | 86bcd81d66d63c549e98c9c502ccd3be01a52fe2 (patch) | |
| tree | 2b52d5120714d9856439db66ad3a91ce413f7c25 /Documentation/core-api | |
| parent | 9474d586819940f00a98dd98015fe456f9b35452 (diff) | |
| parent | bdd7c35fc59f391de5a1d93ca7cbc715bf8c015c (diff) | |
Merge branch 'cxl/for-6.12/printf' into cxl-for-next
Add support for adding a printf specifier '$pra' to emit 'struct range'
content.
Diffstat (limited to 'Documentation/core-api')
| -rw-r--r-- | Documentation/core-api/printk-formats.rst | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst index 14e093da3ccd..ecccc0473da9 100644 --- a/Documentation/core-api/printk-formats.rst +++ b/Documentation/core-api/printk-formats.rst @@ -209,12 +209,17 @@ Struct Resources :: %pr [mem 0x60000000-0x6fffffff flags 0x2200] or + [mem 0x60000000 flags 0x2200] or [mem 0x0000000060000000-0x000000006fffffff flags 0x2200] + [mem 0x0000000060000000 flags 0x2200] %pR [mem 0x60000000-0x6fffffff pref] or + [mem 0x60000000 pref] or [mem 0x0000000060000000-0x000000006fffffff pref] + [mem 0x0000000060000000 pref] For printing struct resources. The ``R`` and ``r`` specifiers result in a -printed resource with (R) or without (r) a decoded flags member. +printed resource with (R) or without (r) a decoded flags member. If start is +equal to end only print the start value. Passed by reference. @@ -231,6 +236,19 @@ width of the CPU data path. Passed by reference. +Struct Range +------------ + +:: + + %pra [range 0x0000000060000000-0x000000006fffffff] or + [range 0x0000000060000000] + +For printing struct range. struct range holds an arbitrary range of u64 +values. If start is equal to end only print the start value. + +Passed by reference. + DMA address types dma_addr_t ---------------------------- |
