From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3DC7FA00BE; Mon, 27 Apr 2020 11:58:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 242991D154; Mon, 27 Apr 2020 11:58:11 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 813761C43C for ; Mon, 27 Apr 2020 11:57:58 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200427095758euoutp012f81d35c526fd6e74a1a706ed885b9f4~JpL22380d2146821468euoutp01J for ; Mon, 27 Apr 2020 09:57:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200427095758euoutp012f81d35c526fd6e74a1a706ed885b9f4~JpL22380d2146821468euoutp01J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1587981478; bh=zT5qY4BY9j+9Y3BeMHnwJNGNq9T9sltZCrlGFrgOmlo=; h=From:To:Subject:Date:In-Reply-To:Reply-To:References:From; b=D0+G63FJuCtc82aRYNPvIRBnlO8wk77VJ4ntVwwgNRp/q320ZJBdy4fRSuL5r2qpj D+/UgBFyqWvyTfquD9G1PYUJh1Gvm7W+zki6l+CqkokZRw/rEOoZDOSKxo5XG4gnQv IzFPcFTV9JwnpRRXCsWA0hDFPDkWxc921mqdBei8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200427095758eucas1p29eecf1b54b9c9912634a83a63e8f9472~JpL2qHQFG3009630096eucas1p2C; Mon, 27 Apr 2020 09:57:58 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 69.E3.60679.6ACA6AE5; Mon, 27 Apr 2020 10:57:58 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200427095757eucas1p272442bb5f00d143ef6498bf3c264fcf4~JpL2aV4Gi3009630096eucas1p2B; Mon, 27 Apr 2020 09:57:57 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200427095757eusmtrp1a0c3aafe0aa077828a24314b9749abd7~JpL2Z0ynd2279822798eusmtrp1N; Mon, 27 Apr 2020 09:57:57 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-1f-5ea6aca6b4ff Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BF.9F.07950.5ACA6AE5; Mon, 27 Apr 2020 10:57:57 +0100 (BST) Received: from idyukov.rnd.samsung.ru (unknown [106.109.129.29]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200427095757eusmtip19bbc5880252e063710331a2bb315bfde~JpL137DM91789417894eusmtip1Q; Mon, 27 Apr 2020 09:57:57 +0000 (GMT) From: Ivan Dyukov To: dev@dpdk.org, i.dyukov@samsung.com, v.kuramshin@samsung.com, thomas@monjalon.net, david.marchand@redhat.com, ferruh.yigit@intel.com, arybchenko@solarflare.com Date: Mon, 27 Apr 2020 12:57:26 +0300 Message-Id: <20200427095737.11082-5-i.dyukov@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200427095737.11082-1-i.dyukov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLIsWRmVeSWpSXmKPExsWy7djPc7rL1iyLM1i1icXiwZS7bBbbV3Sx Wbz7tJ3J4s7e0+wWsy41sVt8enCCxeL0zc3sDuwevxYsZfVYvOclk8exm9PYPd7vu8rm0bdl FaPH6ic/2ALYorhsUlJzMstSi/TtEr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cISf651sUHUfGaUaN+xhAkkwSagIXG6Yx5Ys4jAOkaJjzPfgHUICzhJ/FjyAGwQ i4CqxLy7biAmr4ClxJ9H/hAz5SVWbzjADBLmFLCSePY/GSQsJBAucfHKb7CwkICyxOerCRMY +RYwMqxiFEktLc5Nzy020itOzC0uzUvXS87P3cQIDNxtx35u2cHY9S74EKMAB6MSDy/H9qVx QqyJZcWVuYcYJTiYlUR4H2UsixPiTUmsrEotyo8vKs1JLT7EaAp03ERmKdHkfGBU5ZXEG5oa mltYGpobmxubWSiJ83YIHIwREkhPLEnNTk0tSC2C6WPi4JRqYAy4suVFj7qvx+aAdxfZwoP+ aN753HZBI8rv4v5ph/LWXl+gbuN084zGlyt/rirzXvXoC+aoLWDdt/2p7LcdlouXJS/9k33K eLXR2X/awbaCJ/ap/oyS6TL7dOFu5l/l+Ttunfil/fu/wPWDs+avnip7JkFcwGlhU+YE3n1T biRwBkvXl67fzVSuxFKckWioxVxUnAgAK0ZuC3ICAAA= X-CMS-MailID: 20200427095757eucas1p272442bb5f00d143ef6498bf3c264fcf4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200427095757eucas1p272442bb5f00d143ef6498bf3c264fcf4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200427095757eucas1p272442bb5f00d143ef6498bf3c264fcf4 References: <4816966.qqrk5fENW1@thomas> <20200427095737.11082-1-i.dyukov@samsung.com> Subject: [dpdk-dev] [PATCH v1 4/6] app/testpmd: remove extra type conversions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: 4816966.qqrk5fENW1@thomas.org List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" link_speed is uint32_t. There are no needs to convert it. Signed-off-by: Ivan Dyukov --- app/test-pmd/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 72f25d152..661297ddd 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -577,7 +577,7 @@ port_infos_display(portid_t port_id) printf("\nmemory allocation on the socket: %u",port->socket_id); printf("\nLink status: %s\n", (link.link_status) ? ("up") : ("down")); - printf("Link speed: %u Mbps\n", (unsigned) link.link_speed); + printf("Link speed: %u Mbps\n", link.link_speed); printf("Link duplex: %s\n", (link.link_duplex == ETH_LINK_FULL_DUPLEX) ? ("full-duplex") : ("half-duplex")); @@ -727,7 +727,7 @@ port_summary_display(portid_t port_id) mac_addr.addr_bytes[2], mac_addr.addr_bytes[3], mac_addr.addr_bytes[4], mac_addr.addr_bytes[5], name, dev_info.driver_name, (link.link_status) ? ("up") : ("down"), - (unsigned int) link.link_speed); + link.link_speed); } void -- 2.17.1