From patchwork Fri Oct 29 01:17:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tangmeng X-Patchwork-Id: 46771 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 96CC1385781B for ; Fri, 29 Oct 2021 01:17:35 +0000 (GMT) X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by sourceware.org (Postfix) with ESMTPS id 413E43858405 for ; Fri, 29 Oct 2021 01:17:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 413E43858405 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: bizesmtp43t1635470237tejbmrlr Received: from localhost.localdomain (unknown [58.240.82.166]) by esmtp6.qq.com (ESMTP) with id ; Fri, 29 Oct 2021 09:17:11 +0800 (CST) X-QQ-SSF: 0140000000200020C000B00A0000000 X-QQ-FEAT: 2j+C2ndjE47M4mYUjAO/azslscNKrBgzkVCb+h4WjBh8M33llwMpZq+B5qKJ+ tPhW7hZ4caV0rhdWcC/1QxnuVRWKwNWc1nqUL3BF6AtbhzO0fuqc53cSrSzsx+ea/TQtdjZ zUOC5QPz5dtEMUUv6gknLOFw75aFFQWb8Qwz24Hb6/uMTavSBK2uTK5BUbpuK66Z+Wlcw0m gvh+0Y1DSLwKErYVhcXTfSclPCZKmxS+Iemo37DV9XifwhSP1aVJFYpX5VMKPaXyIocGLiw r0uG2G5RZmcf6eEAbdK0mU2zm0WbTBFIXbd9gYDEqK/KW9d+jItY5VVj761fCGRsHT82s4H HzxHzmvL1IQxOPswhpGS9hEdYGO1w== X-QQ-GoodBg: 2 From: tangmeng To: libabigail@sourceware.org Subject: [PATCH] abilint: fix trivial typo when using abilint Date: Fri, 29 Oct 2021 09:17:10 +0800 Message-Id: <20211029011710.27093-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:qybgforeign1 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_PASS, TXREP, T_SPF_HELO_TEMPERROR 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. * tools/abilint.cc (display_usage): End the usage message with a newline and remove invalid option description. (main): Add a newline after version string. Signed-off-by: tangmeng --- tools/abilint.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/abilint.cc b/tools/abilint.cc index 856f935d..fc8dcc83 100644 --- a/tools/abilint.cc +++ b/tools/abilint.cc @@ -90,7 +90,7 @@ 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" + << " --headers-dir|--hd the path to headers of the elf file\n" "debug info for the elf \n" << " --header-file|--hf the path to one header of the elf file\n" "debug info for the elf \n" @@ -98,7 +98,7 @@ display_usage(const string& prog_name, ostream& out) << " --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 +262,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; }