git: 638e2a132e38 - main - Fix formatting of the usage() output

From: Scott Long <scottl_at_FreeBSD.org>
Date: Fri, 07 Jan 2022 05:59:54 UTC
The branch main has been updated by scottl:

URL: https://cgit.FreeBSD.org/src/commit/?id=638e2a132e38b51b385b2731822294c73621aea9

commit 638e2a132e38b51b385b2731822294c73621aea9
Author:     Scott Long <scottl@FreeBSD.org>
AuthorDate: 2022-01-07 05:59:18 +0000
Commit:     Scott Long <scottl@FreeBSD.org>
CommitDate: 2022-01-07 05:59:18 +0000

    Fix formatting of the usage() output
---
 usr.sbin/mpsutil/mps_slot.c | 2 +-
 usr.sbin/mpsutil/mpsutil.c  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/usr.sbin/mpsutil/mps_slot.c b/usr.sbin/mpsutil/mps_slot.c
index bb4a7324c461..396d5706cd5f 100644
--- a/usr.sbin/mpsutil/mps_slot.c
+++ b/usr.sbin/mpsutil/mps_slot.c
@@ -113,4 +113,4 @@ slot_set(int argc, char **argv)
 }
 
 MPS_COMMAND(slot, set, slot_set, "status <enclosure handle> <slot number> "
-    "<status>", "Set status of the slot in the directly attached enclosure");
+    "<status>", "\n      Set status of the slot in the directly attached enclosure");
diff --git a/usr.sbin/mpsutil/mpsutil.c b/usr.sbin/mpsutil/mpsutil.c
index 51fad0c9b981..cb9563cefa60 100644
--- a/usr.sbin/mpsutil/mpsutil.c
+++ b/usr.sbin/mpsutil/mpsutil.c
@@ -65,10 +65,10 @@ usage(void)
 		} else {
 			(*cmd)->handler(&args, &desc);
 			if (strncmp((*cmd)->set, "top", 3) == 0)
-				fprintf(stderr, "%s %-30s\t%s\n",
+				fprintf(stderr, "%-16s %-28s%s\n",
 				    (*cmd)->name, args, desc);
 			else
-				fprintf(stderr, "%s %s %-30s\t%s\n",
+				fprintf(stderr, "%-5s %-10s %-28s%s\n",
 				    (*cmd)->set, (*cmd)->name, args, desc);
 		}
 	}
@@ -87,7 +87,7 @@ version(int ac, char **av)
 	return (0);
 }
 
-MPS_COMMAND(top, version, version, "", "version")
+MPS_COMMAND(top, version, version, "", "Version number")
 
 int
 main(int ac, char **av)