From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id AC2A51B7C2 for ; Tue, 15 May 2018 15:49:25 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id p4-v6so236980wrh.3 for ; Tue, 15 May 2018 06:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=f5vvXR5H/vq/pH6SrUNHdgziXxEc9sBPGP1noI062gw=; b=VHOAfqyitSvVegfkQkxcpFUp+A+co2pt5BhKpTFisUwb9qUhtjdWoFCgrESHFnPPFX uOQc8AvwnRoWk/mEnGtYBlG1vkfBqqj0btRhxG68lX/1z1uA2je/zm6yHKsWGZgQwKwU FVoLTF/qXLmwFu6M+XFk4BBAsgDmU5ArZxiF4H7gaiBTgaxNzbA4VQR0f4jznkodkdlR ri6VId4uSHpA/uh4QPtXa3YPMO/7/gAxjIWmLaP3WPk7ASdG4VH8CNSQmvA/ZAZ3PB/s g6DvvAHwGoxBd3C6qiOdrxM1y9Hv7YRBcp15Cdlf89oVJLQt8oME8x9lM7c5Ai/NkO32 YgRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=f5vvXR5H/vq/pH6SrUNHdgziXxEc9sBPGP1noI062gw=; b=q1PvLjdzfWhIxntivfmejXtz/ieyznx9bm/E6GN4eanDiei1jcVErd7KsHjxm3nnR8 UjwhO8i4HfUzhVchoduoNTaXzpLI1MRCJVwxY/42gDqVkbX+0RIiz2I9ur5Bja7dkyl0 WZA0x1dV5FkL2upeO/KH8RgYfLyvhSnxmhuimrw/rMprE7rJK2o/Ua/IFOWczXldRI0F ZIuTpE3dv8v0MGNh0ryGs2/5pTurQJByIsqTR91ISxlxu49XBL0+jd4CXSiIcX8//RxO ROd5u9gL8F8b2SIB8+F/TWFytSwZOa11wya8Q4/Wb8Y6bQxDIFn/W/fPAXMpmjRWTZG5 dcnQ== X-Gm-Message-State: ALKqPwfetiEU98Er/58Nou+NSiOdJuI89Ze5MSMlt52DJ3wsKyRUIRGy z4a1s+eyK31W020doOjavV4= X-Google-Smtp-Source: AB8JxZqKYiNFSgjtkKiBwxwb9KxSKRwENfpbVsIaWWYOXlInoS0vdyrf7lmQjL0c61jzuL53rdVaJA== X-Received: by 2002:adf:8567:: with SMTP id 94-v6mr11338986wrh.156.1526392165415; Tue, 15 May 2018 06:49:25 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id v196-v6sm490388wmf.36.2018.05.15.06.49.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:49:24 -0700 (PDT) From: luca.boccassi@gmail.com To: Thomas Monjalon Cc: Ferruh Yigit , Andrew Rybchenko , Stephen Hemminger , dpdk stable Date: Tue, 15 May 2018 14:47:13 +0100 Message-Id: <20180515134731.9337-62-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'ethdev: fix debug log of owner id' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 13:49:25 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From fea89aaf9a9703d943443d12f04af5797f6f4cc3 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Fri, 11 May 2018 01:58:26 +0200 Subject: [PATCH] ethdev: fix debug log of owner id [ upstream commit 444e2b78295d340cc33ea8f3bf24d1222ef8e824 ] The owner id is 64-bit. On 32-bit environment, it must be printed with PRIX64. Fixes: 5b7ba31148a8 ("ethdev: add port ownership") Signed-off-by: Thomas Monjalon Reviewed-by: Ferruh Yigit Reviewed-by: Andrew Rybchenko Reviewed-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 137428402..30a0ba7da 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -370,7 +370,7 @@ rte_eth_is_valid_owner_id(uint64_t owner_id) { if (owner_id == RTE_ETH_DEV_NO_OWNER || rte_eth_dev_shared_data->next_owner_id <= owner_id) { - RTE_PMD_DEBUG_TRACE("Invalid owner_id=%016lX.\n", owner_id); + RTE_PMD_DEBUG_TRACE("Invalid owner_id=%016"PRIX64".\n", owner_id); return 0; } return 1; @@ -420,7 +420,7 @@ _rte_eth_dev_owner_set(const uint16_t port_id, const uint64_t old_owner_id, port_owner = &rte_eth_devices[port_id].data->owner; if (port_owner->id != old_owner_id) { RTE_PMD_DEBUG_TRACE("Cannot set owner to port %d already owned" - " by %s_%016lX.\n", port_id, + " by %s_%016"PRIX64".\n", port_id, port_owner->name, port_owner->id); return -EPERM; } @@ -433,7 +433,7 @@ _rte_eth_dev_owner_set(const uint16_t port_id, const uint64_t old_owner_id, port_owner->id = new_owner->id; - RTE_PMD_DEBUG_TRACE("Port %d owner is %s_%016lX.\n", port_id, + RTE_PMD_DEBUG_TRACE("Port %d owner is %s_%016"PRIX64".\n", port_id, new_owner->name, new_owner->id); return 0; @@ -485,8 +485,8 @@ rte_eth_dev_owner_delete(const uint64_t owner_id) RTE_ETH_FOREACH_DEV_OWNED_BY(port_id, owner_id) memset(&rte_eth_devices[port_id].data->owner, 0, sizeof(struct rte_eth_dev_owner)); - RTE_PMD_DEBUG_TRACE("All port owners owned by %016X identifier" - " have removed.\n", owner_id); + RTE_PMD_DEBUG_TRACE("All port owners owned by %016"PRIX64 + " identifier have removed.\n", owner_id); } rte_spinlock_unlock(&rte_eth_dev_shared_data->ownership_lock); -- 2.14.2