From patchwork Mon Mar 15 12:44:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongren Zheng X-Patchwork-Id: 12139189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1CD1C433E0 for ; Mon, 15 Mar 2021 12:45:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D18764E86 for ; Mon, 15 Mar 2021 12:45:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbhCOMow (ORCPT ); Mon, 15 Mar 2021 08:44:52 -0400 Received: from mail-eopbgr1300137.outbound.protection.outlook.com ([40.107.130.137]:6349 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229505AbhCOMo0 (ORCPT ); Mon, 15 Mar 2021 08:44:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZwTMVZB1YeKd4JjdQu6JOTBr9Njzj1RX2salErx7r1/4Wis6tt9+iJ9OxCaxUletb2zCp3maG0jV8R9vNUhR9EA9Lz+AYySyYyOtsT5I/cN26Q5Er2AZ2JWfid1rhH7m8ZrvCIup2X5OlbTVpojHqkjdAiw4y1mu84EgZ6qlnB9emaTCLDd2vbThjc0Uk6CMMz2j8/M5AeA+I8eU0f7Ri9pfeMs0eClShUG931vLOMEWzSVH2cNNzQzx5iDg/1QSkNaYT38y50d/Gqeh8TvyP51VvCAEHdmiQ9/hxnjCquWYd9Tvyw6ljvdd6bTSJrVR0Mty7UponSt8urI/ltx60w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=arjh0DHu4B+iH+LBtY6oIJz4X5LwdNg10NJQ8iDnZQ0=; b=FkILI/0YXoTF8bGPAOzRZ65+0fUyNJvyVmba7yW6P03h1TezoL5AsFWmpDwRgValWWhhUzpw4fK+HqMR90zFiUpbZtiwqGDhN11dB6b868PEV0MMHPPsICEc+9X7T+UvW+HfV0SbdkA95dXPw5jjykZf23mPQcRfwtOlXFUtrps5cE08QEQLwDbNxCtFKCTGB8Y9DZlgl7FheXDezeusb4xAmuYqi2r2TNzmGGuUgJFr7UJY0tPcEVWnx0/KUu7bh+ukBH+6RhQYhCBs3T/E14moe+2/gZAK1CHmbamQa6efvdbk12B8hhzq6U6gM/fo4Ke6yVatr9qxn80sBPDAGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=zenithal.me; dmarc=pass action=none header.from=zenithal.me; dkim=pass header.d=zenithal.me; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tsinghuau.onmicrosoft.com; s=selector1-tsinghuau-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=arjh0DHu4B+iH+LBtY6oIJz4X5LwdNg10NJQ8iDnZQ0=; b=jctYIV2Xok4r+e/jov55LhfwcK+u9VrUYB7hrQnO1ddIwTvOnMvLqvRF9Vu8TfmxMeWawipKkOrnuWu/zE42kYYRS+cqXX/fWrcR6SfQzgE7X85XjgcaTDWhDtCvI8SFjCZ+49RjsknEVi44VZZL9evNF1bUsSdy+ylnjjVLoEg= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=zenithal.me; Received: from HK0PR03MB3795.apcprd03.prod.outlook.com (2603:1096:203:3c::10) by HK0PR03MB3554.apcprd03.prod.outlook.com (2603:1096:203:55::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.13; Mon, 15 Mar 2021 12:44:24 +0000 Received: from HK0PR03MB3795.apcprd03.prod.outlook.com ([fe80::8492:e28e:e777:6d05]) by HK0PR03MB3795.apcprd03.prod.outlook.com ([fe80::8492:e28e:e777:6d05%6]) with mapi id 15.20.3955.011; Mon, 15 Mar 2021 12:44:24 +0000 Date: Mon, 15 Mar 2021 20:44:19 +0800 From: "Hongren Zheng (Zenithal)" To: Valentina Manea , Shuah Khan , Antonio Borneo , Greg Kroah-Hartman , matt mooney , linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 2/2] usbip: tools: add usage of device mode in usbip_list.c Message-ID: References: Content-Disposition: inline In-Reply-To: X-Operating-System: Linux Sun 5.10.19-1-lts X-Mailer: Mutt 2.0.5 (da5e3282) (2021-01-21) X-Originating-IP: [2402:f000:6:6009::11] X-ClientProxiedBy: HK2PR04CA0087.apcprd04.prod.outlook.com (2603:1096:202:15::31) To HK0PR03MB3795.apcprd03.prod.outlook.com (2603:1096:203:3c::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (2402:f000:6:6009::11) by HK2PR04CA0087.apcprd04.prod.outlook.com (2603:1096:202:15::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.31 via Frontend Transport; Mon, 15 Mar 2021 12:44:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6fa974c9-ca91-4438-46c6-08d8e7b00fc1 X-MS-TrafficTypeDiagnostic: HK0PR03MB3554: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1923; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1CYvskFLKWPfvPXkCA8qVqWVBiylv9urwT+l9RM02HjPc9uLrO29UvISQ9ObRiRhSXNZypTSzN6UWYo/C2ePwEmMwDnC2/tcEW+RczqKdIwgdeqztCaOFC+CF5JgW0r5NI/cVfWWU16lgXtkxkgZF3aCG35JAQ1N6qMAzyTzqLFzUqecaY8n5qSftTNe1OojM3gu3pbro91/vnH0hwgFVap6mN6SJz+x1Iq4LEKlQb0Q7T+acg5O+Wvq0dB8uKElvXiAj7LNq0/qf4rJZsO5JOAy6/lkFbKEW42sUhy+5qEROiTDaP1cGLrK8GBWkppfPA4nZP0t+QqKf+nE74a5ggKAH+XzEzB2+e7y4m/oILE5DTn1qkjZsy7e8v/P5Orp5zFBwv07M4VEV+w1tXodJsNPRIVTWv61NBpDip1l0LNFi5DXWpG2Yua2/2txxyhS/3Ee495mGQzmMd58XomvMYLnjhMoRfTb0vJeyrE+gg4L7mNi7szKFjYigoGD6PBmqix9ftKQXi9WuO3Rq6CHsvEFprRJQIgKwWXweC3GWlV2PjJtom/piIVos6x1ww5WADL50J2LwYyClHChQIUHbI2AXqaMHtcjvnzP3pZVHq0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HK0PR03MB3795.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(366004)(346002)(39830400003)(396003)(376002)(136003)(5660300002)(4326008)(316002)(110136005)(83380400001)(6666004)(786003)(2906002)(4744005)(6486002)(8936002)(16526019)(186003)(86362001)(33716001)(52116002)(6496006)(478600001)(8676002)(66556008)(66946007)(66476007)(9686003)(49092004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: XLzjA6TWsRkoUYimw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xM4GJPxQftxgZ78hzr04S8xLAiMrCpkhJZW0rKOGnV1b3wYRj72erDdTA+V7lTIUyDQ89/TP9+oE588eICahcLZYr+hbHhcoKdBv/+SymDsaYHjed4Xv16sx6MyWdnLkc0Gk1rRpow77vIsT3k+C/N2wlcGqJNIK6KvnBl/NjZLBeraLJvhlLHIMknjC6qkhxokTOWVfT3Nu94hRf2I1bp2vIBdTO7SijHcw1Z3mR0XpEOrdzQrM8mMELuOZZT8f7HGaQ6D92XPw== X-OriginatorOrg: zenithal.me X-MS-Exchange-CrossTenant-Network-Message-Id: 6fa974c9-ca91-4438-46c6-08d8e7b00fc1 X-MS-Exchange-CrossTenant-AuthSource: HK0PR03MB3795.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2021 12:44:24.2501 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 436d481c-43b1-4418-8d7f-84c1e4887cf0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Q5NQpNX/u521FEp2QyRrxFPR9V8mUEM+1R0rw5udfRvheXxf08RV1D6P5roLLsjJ X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK0PR03MB3554 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The option '-d/--device' was implemented in 'usbip list' but not shown in usage. Hence this commit adds this option to usage. --- tools/usb/usbip/src/usbip_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/usb/usbip/src/usbip_list.c b/tools/usb/usbip/src/usbip_list.c index 8625b0f514ee..3d810bcca02f 100644 --- a/tools/usb/usbip/src/usbip_list.c +++ b/tools/usb/usbip/src/usbip_list.c @@ -33,7 +33,8 @@ static const char usbip_list_usage_string[] = "usbip list [-p|--parsable] \n" " -p, --parsable Parsable list format\n" " -r, --remote= List the exportable USB devices on \n" - " -l, --local List the local USB devices\n"; + " -l, --local List the local USB devices\n" + " -d, --device List the local USB gadgets bound to usbip-vudc\n"; void usbip_list_usage(void) {