From patchwork Thu Dec 17 10:47:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 344919 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp1048016jai; Thu, 17 Dec 2020 02:47:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEF/9ujxQoeS1QkdB3xjHq3PPMQPYgaM97Zl+4VJH9TvtT43kdlPypoFdJmHh+yEhmp1Rf X-Received: by 2002:a17:907:101c:: with SMTP id ox28mr32644132ejb.201.1608202061607; Thu, 17 Dec 2020 02:47:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608202061; cv=none; d=google.com; s=arc-20160816; b=TqXRPX9pnBAbMfBM6IE0Pr4tlBvLeAkwO11PcvgARRT7hPQt58HY2qXwy3KSiO3dz+ XG0+z99lGSWJ3n9cR+U4b/1O/HD1qbXjXr7hgwXsmIGIlG1qzHba6eCTA2yDJosAWTMd lqv1VzH+jnTrDh/VFxyRbK6n/wDUVUCyvMs+A1WKXCBT3kBQg+JX+/sPvV2BVtv9TBkM 7zGNYvjOP+S6c+2nylVR/SKfbJJ5nV9b4biGmTcA5orlxPKwHPAUIhwXsxQhBnG/y7s7 rAYxjCneuQCpg1eb8ef9ODNqaYSP3SZSv9O7RAQpaaeXtydpB4H1yBp/zrHkoJchy2mM SUxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:references:cms-type:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=8OBwWI01jo01THPtcg50CjO3x+0sbhu7OHgcp3atMLY=; b=J2sMfMTxgt1lmSDvwCUIphGlaVUQvxbvI4tv3XQO/VRV+i/KNxmF0KHn7wGcvXVukf TUNhvosdeCa++tTavVrvc0Kg6O1OocJKcanOWnEIaJd8N8tndd3N4xWJkNSfUbCX6sIr FEB10jbNRVn3QJ1HtTODJhkX3nAFqF/YU+uwX2qtvcmN4f8y0iigJ3X2tybmn85nb7gs V6TGMLOE5F7wMGw7trEaVQIwPHAvJResTLJyeejsHjFr01kk0kpVw32mhXv4kxQt8rpI WHBLPS9FjfVLKwWY03ewy7aIRtg98EvZH1krESXkDJn9+FbM0O3rNgbbH17+NvMYlhuW ELcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SeYDnQPE; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ga15si2353478ejc.598.2020.12.17.02.47.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 02:47:41 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SeYDnQPE; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C446682B87; Thu, 17 Dec 2020 11:47:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=samsung.com header.i=@samsung.com header.b="SeYDnQPE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A20A182B89; Thu, 17 Dec 2020 11:47:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B2E8582B83 for ; Thu, 17 Dec 2020 11:47:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=m.szyprowski@samsung.com Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20201217104725euoutp0118b333d6751b66cfd7d6078ada53bd97~Rez1DV2qT1600916009euoutp01J for ; Thu, 17 Dec 2020 10:47:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20201217104725euoutp0118b333d6751b66cfd7d6078ada53bd97~Rez1DV2qT1600916009euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1608202045; bh=8OBwWI01jo01THPtcg50CjO3x+0sbhu7OHgcp3atMLY=; h=From:To:Cc:Subject:Date:References:From; b=SeYDnQPEx5xxU7MJUUjCjsqQU+efadV8/VtYHmAxEuAqeB2qo8Xhsj4Qkcq2s150Q AF8BrDweQhCVWs8/uiXn2eQJY9GNYaj5nIGQyKaj+CgkL6RMpRsNCOIq9kYqH8eseq lvsNMBmoFPhkUo0oohPpCEwTSM57lT/2VGnq078s= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20201217104716eucas1p1bee1bfd01b604359ecc12e2a8764c432~ReztVCa_-2756427564eucas1p1w; Thu, 17 Dec 2020 10:47:16 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 9C.02.45488.4373BDF5; Thu, 17 Dec 2020 10:47:16 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201217104716eucas1p2953198789d4975e27ad7dd1b2d0d2cc8~ReztCEW_R1282712827eucas1p2b; Thu, 17 Dec 2020 10:47:16 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201217104716eusmtrp13fa0ecaae5f90918ee8f3a85ec3d00e7~ReztBcUsA1420714207eusmtrp1u; Thu, 17 Dec 2020 10:47:16 +0000 (GMT) X-AuditID: cbfec7f5-c5fff7000000b1b0-cc-5fdb3734af15 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 60.CC.21957.4373BDF5; Thu, 17 Dec 2020 10:47:16 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201217104715eusmtip207f30d3ec40d1b7bba82ddb97476fedc~RezspuVZu0595905959eusmtip2b; Thu, 17 Dec 2020 10:47:15 +0000 (GMT) From: Marek Szyprowski To: u-boot@lists.denx.de Cc: Marek Szyprowski , Jaehoon Chung , Lukasz Majewski , Bartlomiej Zolnierkiewicz Subject: [PATCH] cmd: usb_mass_storage: show device interface name Date: Thu, 17 Dec 2020 11:47:11 +0100 Message-Id: <20201217104711.3405-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djP87om5rfjDabO1rTYOGM9q8WNX22s Fs/fXWayWHvkLrvF272d7A6sHvNmnWDxOHtnB6NH35ZVjAHMUVw2Kak5mWWpRfp2CVwZM07v YC1o4qjoW3qCpYHxIFsXIyeHhICJxOyv04FsLg4hgRWMEnPuPmaEcL4wSjR+6GKFcD4zSmzs bwHKcIC1LPzOBBFfzigxt7GZDa5j8v9HrCBz2QQMJbredoHtEBGQkPjVf5URxGYW2MQo8eJR IIgtLOAksXTaARYQm0VAVWLOxn1gNbwCNhKzOnZA3ScvsXrDAWaQBRICL9klWn+1M0IkXCS6 bveyQNjCEq+Ob2GHsGUkTk/uYYFoaGaUeHhuLTuE08MocblpBlS3tcSdc7/YQP5hFtCUWL9L HyLsKNG1YB87xJt8EjfeCkIczScxadt0Zogwr0RHmxBEtZrErOPr4NYevHCJGcL2kLh9/RtY XEggVmLKudPMExjlZiHsWsDIuIpRPLW0ODc9tdg4L7Vcrzgxt7g0L10vOT93EyMwzk//O/51 B+OKVx/1DjEycTAeYpTgYFYS4U04cDNeiDclsbIqtSg/vqg0J7X4EKM0B4uSOO+urWvihQTS E0tSs1NTC1KLYLJMHJxSDUw2n97d5Ix6vkh73c1jtSfDLrx++zNV6YuW1QKVjnWlgcZ9W0Ie MW59JOKu3KDw32LZ9csMrVFW2tvmpjav75axSqzf4B4dtbzm1jPN7E0eTvnFx34Hqz83t0uz O7hv27nX8vv2/Z/wqCM4LuqtassbN0ERHQP/3ixFp7+PN2TvWNwQcvXDcnmTDXeYmG403Jyk yqy/mG9ngaLAku8NBjr7q19xSB95pRi0dbn5nbm6DIVHDuxU23y5O+Lh0Zn/3ydl90scWPzF ZvERV9lVQvc/6C2/kiG/oujLT6kfzn+3B4oe2vbmjafV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975e27ad7dd1b2d0d2cc8 X-Msg-Generator: CA X-RootMTR: 20201217104716eucas1p2953198789d4975e27ad7dd1b2d0d2cc8 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201217104716eucas1p2953198789d4975e27ad7dd1b2d0d2cc8 References: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Show the interface name (i.e. 'mmc') in the information string to ease user checking which device is exported via USB Mass Storage protocol. Signed-off-by: Marek Szyprowski --- cmd/usb_mass_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 Reviewed-by: Lukasz Majewski diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c index cf2f55994e..14fa7233c7 100644 --- a/cmd/usb_mass_storage.c +++ b/cmd/usb_mass_storage.c @@ -115,8 +115,8 @@ static int ums_init(const char *devtype, const char *devnums_part_str) ums[ums_count].name = name; ums[ums_count].block_dev = *block_dev; - printf("UMS: LUN %d, dev %d, hwpart %d, sector %#x, count %#x\n", - ums_count, ums[ums_count].block_dev.devnum, + printf("UMS: LUN %d, dev %s %d, hwpart %d, sector %#x, count %#x\n", + ums_count, devtype, ums[ums_count].block_dev.devnum, ums[ums_count].block_dev.hwpart, ums[ums_count].start_sector, ums[ums_count].num_sectors);