From patchwork Fri Oct 29 01:41:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tangmeng X-Patchwork-Id: 46772 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C8EFE385782E for ; Fri, 29 Oct 2021 01:41:53 +0000 (GMT) X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from smtpbgau2.qq.com (smtpbgau2.qq.com [54.206.34.216]) by sourceware.org (Postfix) with ESMTPS id 77FE63858405 for ; Fri, 29 Oct 2021 01:41:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 77FE63858405 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=uniontech.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=uniontech.com X-QQ-mid: bizesmtp53t1635471700tyinjymi Received: from localhost.localdomain (unknown [58.240.82.166]) by esmtp6.qq.com (ESMTP) with id ; Fri, 29 Oct 2021 09:41:31 +0800 (CST) X-QQ-SSF: 0140000000200020C000000A0000000 X-QQ-FEAT: XFP6IXEuxf7LELRhKmoF2UVJwAZlc5YPvgK8L619HZZ61KTYLBSOImZZOeQyr tgqBQD0N0QXYottUVCeknNCoc1ZhoYuknwBYsLl96uxaJLtk7jc+W7Pz4Mqp3TuEgWoGzVm sf+E61paDdiTgxQRM2eSAhkfz+HnAV+oz4goFGW9UQacQT9zXWakadHRocdQXXRm1msZwtf KNIQpj4ZRWvxAYRyq+WjhqM/bH3FzHj/sD23PtFuDS2bY7Bn/WSBWspF9RKemYlaBFPB7O3 pgH7EhxbtrMDKrDYzXBFPTA40i8IpGzKLe0VtmFKq/gz2fLnYH0hwwGr2SOqOpfp2kwtzGe 8fhOrzG3rLVC6GMUqtA5YzwyeGXig== X-QQ-GoodBg: 2 From: tangmeng To: libabigail@sourceware.org Subject: [PATCH v2] abilint: fix trivial typo when using abilint Date: Fri, 29 Oct 2021 09:41:29 +0800 Message-Id: <20211029014129.6641-1-tangmeng@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , Cc: tangmeng Errors-To: libabigail-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libabigail" When using the abilint command, several problems were found: 1.When abilint prints its version information, it does not terminate it with a newline. 2.There is a spelling error, the path is mistakenly written as patch. 3.There are extra fields in the help option. 4.Inappropriate and confusing option description. * tools/abilint.cc (display_usage): Correct the errors and redundant content in the help information. (main): Add a newline after version string. Signed-off-by: tangmeng --- tools/abilint.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/abilint.cc b/tools/abilint.cc index 856f935d..b82543d2 100644 --- a/tools/abilint.cc +++ b/tools/abilint.cc @@ -90,15 +90,14 @@ display_usage(const string& prog_name, ostream& out) << " --help display this message\n" << " --version|-v display program version information and exit\n" << " --debug-info-dir the path under which to look for " - << " --headers-dir|--hd the path to headers of the elf file\n" "debug info for the elf \n" + << " --headers-dir|--hd the path to headers of the elf file\n" << " --header-file|--hf the path to one header of the elf file\n" - "debug info for the elf \n" << " --suppressions|--suppr specify a suppression file\n" << " --diff for xml inputs, perform a text diff between " "the input and the memory model saved back to disk\n" << " --noout do not display anything on stdout\n" - << " --stdin|-- read abi-file content from stdin\n" + << " --stdin read abi-file content from stdin\n" << " --tu expect a single translation unit file\n"; } @@ -262,7 +261,8 @@ main(int argc, char* argv[]) if (opts.display_version) { emit_prefix(argv[0], cout) - << abigail::tools_utils::get_library_version_string(); + << abigail::tools_utils::get_library_version_string() + << "\n"; return 0; }