Commit 3dff66ff authored by Ira Weiny's avatar Ira Weiny Committed by Dave Jiang
Browse files

Documentation/printf: struct resource add start == end special case



The code when printing a struct resource will check for start == end and
only print the start value.

Document this special case.

Suggested-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241025-cxl-pra-v2-2-123a825daba2@intel.com


Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
parent 8e7f07e6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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.