From patchwork Wed Jun 5 16:06:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 165907 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp7548102ili; Wed, 5 Jun 2019 09:06:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkiA/5MYp+pKbJKEPblg9xVEGoOudmr7gqDbtu5w5L9x1u/tadr671qJYWaAr/AVYTd/Zp X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr33025119pjq.142.1559750797578; Wed, 05 Jun 2019 09:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559750797; cv=none; d=google.com; s=arc-20160816; b=Ow4c/L3/DPk9vaIfLeN0V0WuU1zme+5tti9ViYMvCA8TCmoMNET1HpYCcjViDng1wK jNDkw0ZUil7Tp+GBFuWo1iH9IaoJY6jeYqvABR2O/3qZBvNzExIP7nYg4Of3qa5Hl1Za Rq6BeJ7hLXhjojEmUhcAFFW5q5QlJYbnAaLEVwL7dkA4WTJNO0gO2SP1dhh2rCNjWLnA N8KyAfAt5Z+fX1f/W2kMJdUOOMqNB3DJhbDQ93cJhmALgL2/AYQbaNymAhr6QPwaptyz FiTFR/+izsP57bmQhRf0s2GeG2MFfXj/7nw00CDeAPdkQR/Sh/X7Pk06R9MaKDVcrJ+4 lheA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uOuXN/teordWKBedjbLhio+PxHj002XmoCaMPQy3kDs=; b=XdkvKWvF9tMkWrye+ox+VVLpS8ufBn9x9iUiI000b3BLLCazEKEFBHsxSHT11R4n0K rUJ9Paug6ddesCQNc+apGZr4DQ87A3TNs6S4jrWBGJW+4jMwicxJLwB4bIEQC9oNKlOg IKgOdsrHLCXX5Wuk8ZcYc5CRV9W88cuRYdkyjzWjqHo2idc+3C0XjrZ4G5G99qm74nMj qEjHIYpUqYuNlaZv+Z6axXXEvULecgiXC1YpRQiZbTSn3iqA7+nZ0phjWkFDNflyWOW7 WvPUS9vhmLdISiTgn/yYvxv9/AL9JPFFM6i5N8Ec5reS7B872B1XfXeawGpaINs/UT9G ZrAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si27364257pgm.101.2019.06.05.09.06.37; Wed, 05 Jun 2019 09:06:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728596AbfFEQGg (ORCPT + 3 others); Wed, 5 Jun 2019 12:06:36 -0400 Received: from mail.monom.org ([188.138.9.77]:35618 "EHLO mail.monom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728560AbfFEQGd (ORCPT ); Wed, 5 Jun 2019 12:06:33 -0400 Received: from mail.monom.org (localhost [127.0.0.1]) by filter.mynetwork.local (Postfix) with ESMTP id C2D1B50081F; Wed, 5 Jun 2019 18:06:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.monom.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (ppp-93-104-174-142.dynamic.mnet-online.de [93.104.174.142]) by mail.monom.org (Postfix) with ESMTPSA id 820745004BB; Wed, 5 Jun 2019 18:06:31 +0200 (CEST) From: Daniel Wagner To: John Kacur Cc: linux-rt-users@vger.kernel.org, Daniel Wagner Subject: [PATCH v2 04/12] pi_stress: Allow short command line arguments Date: Wed, 5 Jun 2019 18:06:09 +0200 Message-Id: <20190605160617.22987-5-wagi@monom.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190605160617.22987-1-wagi@monom.org> References: <20190605160617.22987-1-wagi@monom.org> MIME-Version: 1.0 Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org Add optstring to getopt_long() command line parser to support the short options as it documented in the man page and also in the usage help text. Signed-off-by: Daniel Wagner --- src/pi_tests/pi_stress.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.20.1 Signed-off-by: John Kacur diff --git a/src/pi_tests/pi_stress.c b/src/pi_tests/pi_stress.c index ac7646cd2613..543106be8e18 100644 --- a/src/pi_tests/pi_stress.c +++ b/src/pi_tests/pi_stress.c @@ -1322,9 +1322,8 @@ int process_sched_line(const char *arg) void process_command_line(int argc, char **argv) { int opt; - while ((opt = getopt_long(argc, argv, "+", options, NULL)) != -1) { + while ((opt = getopt_long(argc, argv, "+ht:vqi:g:rs:pdVum", options, NULL)) != -1) { switch (opt) { - case '?': case 'h': usage(); exit(0);