git: ef303790efb6 - stable/13 - Fix formatting of the usage() output

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Mon, 16 May 2022 14:25:30 UTC
The branch stable/13 has been updated by mav:

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

commit ef303790efb63591f2f85a52413a91b311550d5d
Author:     Scott Long <scottl@FreeBSD.org>
AuthorDate: 2022-01-07 05:59:18 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2022-05-16 13:53:01 +0000

    Fix formatting of the usage() output
    
    (cherry picked from commit 638e2a132e38b51b385b2731822294c73621aea9)
---
 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)