From patchwork Mon Apr 30 14:37:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 27049 Received: (qmail 91840 invoked by alias); 30 Apr 2018 14:37:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 91325 invoked by uid 89); 30 Apr 2018 14:37:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.144.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Apr 2018 14:37:36 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 57D728A721D for ; Mon, 30 Apr 2018 09:37:35 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id D9vrfhJbL5CKDD9vrfEL2P; Mon, 30 Apr 2018 09:37:35 -0500 X-Authority-Reason: nr=8 Received: from 97-122-176-117.hlrn.qwest.net ([97.122.176.117]:38242 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1fD9vr-003hNM-3r; Mon, 30 Apr 2018 09:37:35 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFA 06/12] Update help text in dcache.c Date: Mon, 30 Apr 2018 08:37:25 -0600 Message-Id: <20180430143731.30007-7-tom@tromey.com> In-Reply-To: <20180430143731.30007-1-tom@tromey.com> References: <20180430143731.30007-1-tom@tromey.com> X-BWhitelist: no X-Source-L: No X-Exim-ID: 1fD9vr-003hNM-3r X-Source-Sender: 97-122-176-117.hlrn.qwest.net (bapiya.Home) [97.122.176.117]:38242 X-Source-Auth: tom+tromey.com X-Email-Count: 14 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes 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 * 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(-) 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 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."),