[RFA,06/12] Update help text in dcache.c

Message ID 20180430143731.30007-7-tom@tromey.com
State New
Headers show
Series
  • Small help text tweaks
Related show

Commit Message

Tom Tromey April 30, 2018, 2:37 p.m.
This updates some text in dcache.c to follow GNU standards.
Here, I found a couple of spots needing an update.

2018-04-29  Tom Tromey  <tom@tromey.com>

	* dcache.c (dcache_info_1): Update usage text.
	(_initialize_dcache): Update help text.
---
 gdb/ChangeLog | 5 +++++
 gdb/dcache.c  | 7 ++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.13.6

Comments

Pedro Alves May 4, 2018, 6:27 p.m. | #1
On 04/30/2018 03:37 PM, Tom Tromey wrote:
> This updates some text in dcache.c to follow GNU standards.

> Here, I found a couple of spots needing an update.


OK.

Thanks,
Pedro Alves

Patch

diff --git a/gdb/dcache.c b/gdb/dcache.c
index 805f492bd7..20b781fa01 100644
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -595,7 +595,7 @@  dcache_info_1 (DCACHE *dcache, const char *exp)
       i = strtol (exp, &linestart, 10);
       if (linestart == exp || i < 0)
 	{
-	  printf_filtered (_("Usage: info dcache [linenumber]\n"));
+	  printf_filtered (_("Usage: info dcache [LINENUMBER]\n"));
           return;
 	}
 
@@ -701,9 +701,10 @@  exists only for compatibility reasons."),
   add_info ("dcache", info_dcache_command,
 	    _("\
 Print information on the dcache performance.\n\
+Usage: info dcache [LINENUMBER]\n\
 With no arguments, this command prints the cache configuration and a\n\
-summary of each line in the cache.  Use \"info dcache <lineno> to dump\"\n\
-the contents of a given line."));
+summary of each line in the cache.  With an argument, dump\"\n\
+the contents of the given line."));
 
   add_prefix_cmd ("dcache", class_obscure, set_dcache_command, _("\
 Use this command to set number of lines in dcache and line-size."),