From patchwork Wed Jan 31 00:04:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 10192967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 526816020C for ; Wed, 31 Jan 2018 00:04:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40647223B2 for ; Wed, 31 Jan 2018 00:04:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 329F626255; Wed, 31 Jan 2018 00:04:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E09D223B2 for ; Wed, 31 Jan 2018 00:04:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752006AbeAaAEY (ORCPT ); Tue, 30 Jan 2018 19:04:24 -0500 Received: from mail-eopbgr20063.outbound.protection.outlook.com ([40.107.2.63]:28960 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751812AbeAaAEX (ORCPT ); Tue, 30 Jan 2018 19:04:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8g5MJwIOR4kmuqThu6A+YCWu2bLOoAnjpOazo9appds=; b=mKoa31TTU4TLyknTs8NLNOAVQCtVMuVeg/0HbwvU7vKnZpL4M8fT4GDDSZaBbfj4VnqlW05HkMQBjDGy9evgMapOv4eFxuX7Gj43iHPKXFOZbMIdWdrp6aRIrg/02FTf7Otuq1rqXLGxycwX3FDSQKt2W5jYZ5WmDfZU+dxly3M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jgg@mellanox.com; Received: from mlx.ziepe.ca (70.74.179.152) by VI1PR0501MB2864.eurprd05.prod.outlook.com (2603:10a6:800:9b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Wed, 31 Jan 2018 00:04:20 +0000 Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1egfst-0007mV-6U; Tue, 30 Jan 2018 17:04:15 -0700 Date: Tue, 30 Jan 2018 17:04:15 -0700 From: Jason Gunthorpe To: linux-rdma@vger.kernel.org Cc: Yuval Shaia Subject: [PATCH rdma-core] rc_pingpong: Fix getopt processing of -t Message-ID: <20180131000415.GA29879@ziepe.ca> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [70.74.179.152] X-ClientProxiedBy: AM5PR0701CA0012.eurprd07.prod.outlook.com (2603:10a6:203:51::22) To VI1PR0501MB2864.eurprd05.prod.outlook.com (2603:10a6:800:9b::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9d46f7bc-da0d-46f6-f41f-08d5683e2dfe X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0501MB2864; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2864; 3:m9JihTAiYJUfRkjsWuN2UGxITH7vdJs66osXfCr5JwWHgvssL61BnjGWCUsF6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dxndAJH3jnjPAAB3VuG4CYLu/OpNWTxxsBSTPN0+2Y+8OIer1XRHv9aauzveHrBpEW4kFlGlZEdezVOMS8QL86/+oafdPxjjCaCY13WpX/UEL3Gwua45iuAtU47vQ4OZ6msxMkPaUZtTc4GvAS0zeDvoFRINJICJ17sr7nr5aBZWlUiTNor+ti+kwZWfVVwZTO3pEDtTd/KxgICsSzT3WkzITz+P2s30S5e3FxnuzKw6HObDrqhjJ1QX3aMw3p2FyVKdn9xgLtR0hZN6iLF4pZDI3; 4:3hh0bzxNhYoinYT+7kC8lY5cb44nKflgC7YlCqtM0cJo8nDVCxOVmREgvCAp7uwr1O6DGIvmwML8h9y/0mfkQk1yQ1Jj+zJVcac+8nMcXNjF8rMuVamWmyFxdcreiTgA43t8NQsg76GNmzlyBnBYmn0/8oE7A6DquF92DTJJhUeuMyOJ4HP0nYuhET1kvcaD0bqx1Pw9XyX/iYAxIsjbCB6dyV/CYhlzMYPpVtf9Z6JhyzfevmTdKHM+EwYVgpQJYZPhqbLGr53/KQx2M/ttDg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3231101)(2400082)(944501161)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:VI1PR0501MB2864; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2864; X-Forefront-PRVS: 056929CBB8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(366004)(39380400002)(39860400002)(199004)(189003)(68736007)(8676002)(305945005)(57986006)(83796002)(386003)(33896004)(2351001)(105586002)(52116002)(59450400001)(83506002)(5660300001)(2361001)(1076002)(186003)(6116002)(81166006)(36756003)(8936002)(81156014)(478600001)(122856001)(69596002)(6916009)(7736002)(3846002)(23726003)(58126008)(97736004)(16586007)(316002)(47776003)(66066001)(33656002)(9786002)(9746002)(26005)(2906002)(107886003)(46656002)(106356001)(4326008)(86362001)(53936002)(9686003)(50466002)(18370500001)(24400500001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2864; H:mlx.ziepe.ca; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0501MB2864; 23:jJxwWo4FWp/yc3xjaTJSAQp1mYIibkRfUvFZxtK?= =?us-ascii?Q?Hn37PZ2fDYjA/GpL706kvnHptJZc8y3EjO8LjPQkQNolK0UH1VnVmcNv7Nnj?= =?us-ascii?Q?qYb63jagiCA0NscU3NFEl6T2x3ahc5uecCdrGjHQwaNQ14pIQOQxUuWoKuWh?= =?us-ascii?Q?imzQxMJIC5UFeDiqtDTw39EdVq/gWRcZZ8lSFK6j+tVIY4VhhWkJr+zUPgXV?= =?us-ascii?Q?iHtO2PoX18h0KByFOfrp5AHu80/+rF+EdY41lwDjl0EmlLTS+qKt2/+T0ZcT?= =?us-ascii?Q?U/NzOmscluIuyTgPMyEhbS5I/XlHQgisVOhfZ0g7ggr9JR9I2ow0x9N54C3m?= =?us-ascii?Q?9IBFUO5MbKvhrxPM0+9coaX5j51sgfUmuhJqL8oQCtbM3RB4TSfjPm3yi6Fx?= =?us-ascii?Q?H7CyyWEyKUWJmQL9/S/x/ggRdr8leO3GZwrMz8bMfZWPzJ0GuBXX/B+ZXDCK?= =?us-ascii?Q?T13eFeItZUvG+XQFKF22ktw9jCrso7wPLvM2K5mrYPsX32eMaPJAvr+diAyC?= =?us-ascii?Q?S6ug7dKsIE2ervYVF/3LMWNCM4k9cXcq3ebTJW+4YKOQHJeTAOoG88cWXBFK?= =?us-ascii?Q?+TmnAjQ9YWOdNgz4KTjPeGQFtCB+iS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sWBDqLhqZD6X5FlXAboR3gxvlbvPXvMB8V+6Lf+sGp3tLPS+43oxxAkDMqtoT44NwT83IEwAxBQMIinlldCcFWDha+uxOKwfvfQl7xSiR9sHskRr1y5ySxEN2nIGXDGukRYpDyBl4BQ+0n4iUf67lhqlcgW2tLsEz18SNNXgNT5EULYVjogGI0GaCtTPpyW8oF787yn7uzqd4L2NSQ9knkRuI6HsYizk=; 5:+nzzs7pCCO60KZ3X3D08b6OwBoc7lIeqFiZDxZK7ZuUeZEtEISgus7uf4uf2f7TtYuVr4pbR50oph35OYo7Wyz/adSiWbmqTj9SIcoMds5IwLW5Gmaee4PP0gxYVDaLTUxsaH6SylTYcj9BqWsOddK+ZrocRvxWvud5IJxD4TY8=; 24:i1sX8juPuDlSK1k027sMsUEyDOOJ513OdH/COp4luawT9QH2AOzktngwblvBbv3UEvyOhvv5LUWM2wAG4cyyKfvbAhLUiVOS7ITyQs0JfFw=; 7:OvL1XoMnYyPm8bQu8ou8PDlFBPWRvBDBNdWJRRYWUS/4VLTh6oePLz5vmGfEg+htWWSriK06n+oFx8UFjTl6iKuX9sEMq/YnoBueC/TP0JWQo8yh6kAqHkqdmv5neRUOxb80BbafkAEYW0B3ySxWQPA+rzNkxh6EscVrifPLmFcER4jcJLp4W6M6tM7ptSJlOfvpcARAPkTkFpZQsjPL5k/RX9YD823Xg9kPd3BCj/2kdTqkJxqmweXsiD7wmcMK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2018 00:04:20.9862 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9d46f7bc-da0d-46f6-f41f-08d5683e2dfe X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2864 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The -t option never had an argument, a : was erroneously added when the -c option was added Fixes: 099c5aa50bc8 ("libibverb/examples: Add command line option to enable buffer validation") Signed-off-by: Jason Gunthorpe Reviewed-by: Yuval Shaia --- libibverbs/examples/rc_pingpong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libibverbs/examples/rc_pingpong.c b/libibverbs/examples/rc_pingpong.c index b5153bceb8254b..cf5c045741b7be 100644 --- a/libibverbs/examples/rc_pingpong.c +++ b/libibverbs/examples/rc_pingpong.c @@ -730,7 +730,7 @@ int main(int argc, char *argv[]) {} }; - c = getopt_long(argc, argv, "p:d:i:s:m:r:n:l:eg:ot:c", + c = getopt_long(argc, argv, "p:d:i:s:m:r:n:l:eg:otc", long_options, NULL); if (c == -1)