diff mbox series

[ndctl,01/11] cxl/list: Reformat option list

Message ID 165765284992.435671.17218875214208199972.stgit@dwillia2-xfh
State Superseded
Headers show
Series cxl: Region provisioning foundation | expand

Commit Message

Dan Williams July 12, 2022, 7:07 p.m. UTC
Cleanup some spurious spaces and let clang-format re-layout the options.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 cxl/list.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Comments

Davidlohr Bueso July 13, 2022, 7:04 p.m. UTC | #1
On Tue, 12 Jul 2022, Dan Williams wrote:

>Cleanup some spurious spaces and let clang-format re-layout the options.

Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>

>
>Signed-off-by: Dan Williams <dan.j.williams@intel.com>
>---
> cxl/list.c |    9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
>diff --git a/cxl/list.c b/cxl/list.c
>index 940782d33a10..1b5f58328047 100644
>--- a/cxl/list.c
>+++ b/cxl/list.c
>@@ -36,8 +36,7 @@ static const struct option options[] = {
>		   "filter by CXL endpoint device name(s)"),
>	OPT_BOOLEAN('E', "endpoints", &param.endpoints,
>		    "include CXL endpoint info"),
>-	OPT_STRING('d', "decoder", &param.decoder_filter,
>-		   "decoder device name",
>+	OPT_STRING('d', "decoder", &param.decoder_filter, "decoder device name",
>		   "filter by CXL decoder device name(s) / class"),
>	OPT_BOOLEAN('D', "decoders", &param.decoders,
>		    "include CXL decoder info"),
>@@ -45,11 +44,11 @@ static const struct option options[] = {
>		    "include CXL target data with decoders or ports"),
>	OPT_BOOLEAN('i', "idle", &param.idle, "include disabled devices"),
>	OPT_BOOLEAN('u', "human", &param.human,
>-		    "use human friendly number formats "),
>+		    "use human friendly number formats"),
>	OPT_BOOLEAN('H', "health", &param.health,
>-		    "include memory device health information "),
>+		    "include memory device health information"),
>	OPT_BOOLEAN('I', "partition", &param.partition,
>-		    "include memory device partition information "),
>+		    "include memory device partition information"),
> #ifdef ENABLE_DEBUG
>	OPT_BOOLEAN(0, "debug", &debug, "debug list walk"),
> #endif
>
diff mbox series

Patch

diff --git a/cxl/list.c b/cxl/list.c
index 940782d33a10..1b5f58328047 100644
--- a/cxl/list.c
+++ b/cxl/list.c
@@ -36,8 +36,7 @@  static const struct option options[] = {
 		   "filter by CXL endpoint device name(s)"),
 	OPT_BOOLEAN('E', "endpoints", &param.endpoints,
 		    "include CXL endpoint info"),
-	OPT_STRING('d', "decoder", &param.decoder_filter,
-		   "decoder device name",
+	OPT_STRING('d', "decoder", &param.decoder_filter, "decoder device name",
 		   "filter by CXL decoder device name(s) / class"),
 	OPT_BOOLEAN('D', "decoders", &param.decoders,
 		    "include CXL decoder info"),
@@ -45,11 +44,11 @@  static const struct option options[] = {
 		    "include CXL target data with decoders or ports"),
 	OPT_BOOLEAN('i', "idle", &param.idle, "include disabled devices"),
 	OPT_BOOLEAN('u', "human", &param.human,
-		    "use human friendly number formats "),
+		    "use human friendly number formats"),
 	OPT_BOOLEAN('H', "health", &param.health,
-		    "include memory device health information "),
+		    "include memory device health information"),
 	OPT_BOOLEAN('I', "partition", &param.partition,
-		    "include memory device partition information "),
+		    "include memory device partition information"),
 #ifdef ENABLE_DEBUG
 	OPT_BOOLEAN(0, "debug", &debug, "debug list walk"),
 #endif