[PATCH master] commands: cpuinfo: unify command description

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Aug 26 01:33:00 PDT 2026


While the rendering of the barebox command help text into the documentation
got better between v206.07.0 and v2026.08, it's still not completely
right:

  https://www.barebox.org/doc/2026.07.0/commands/info/cpuinfo.html
  https://www.barebox.org/doc/2026.08.0/commands/info/cpuinfo.html

This is due to having differing BAREBOX_CMD_DESC content between the
implementations of the command. Just use the same string everywhere to
fix this.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/arm/cpu/cpuinfo.c       | 2 +-
 arch/sandbox/board/cpuinfo.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/cpu/cpuinfo.c b/arch/arm/cpu/cpuinfo.c
index c8435e34fdd8..27c5e0697b87 100644
--- a/arch/arm/cpu/cpuinfo.c
+++ b/arch/arm/cpu/cpuinfo.c
@@ -283,7 +283,7 @@ BAREBOX_CMD_HELP_END
 
 BAREBOX_CMD_START(cpuinfo)
 	.cmd            = do_cpuinfo,
-	BAREBOX_CMD_DESC("show info about CPU")
+	BAREBOX_CMD_DESC("show CPU information")
 	BAREBOX_CMD_OPTS("[-sm]")
 	BAREBOX_CMD_GROUP(CMD_GRP_INFO)
 	BAREBOX_CMD_COMPLETE(empty_complete)
diff --git a/arch/sandbox/board/cpuinfo.c b/arch/sandbox/board/cpuinfo.c
index 589135102cd3..00516560d30a 100644
--- a/arch/sandbox/board/cpuinfo.c
+++ b/arch/sandbox/board/cpuinfo.c
@@ -45,7 +45,7 @@ BAREBOX_CMD_HELP_END
 
 BAREBOX_CMD_START(cpuinfo)
 	.cmd            = do_cpuinfo,
-	BAREBOX_CMD_DESC("show info about CPU")
+	BAREBOX_CMD_DESC("show CPU information")
 	BAREBOX_CMD_OPTS("[-s]")
 	BAREBOX_CMD_GROUP(CMD_GRP_INFO)
 	BAREBOX_CMD_COMPLETE(empty_complete)
-- 
2.47.3




More information about the barebox mailing list