From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2444A0032; Fri, 29 Oct 2021 21:39:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D835441120; Fri, 29 Oct 2021 21:39:52 +0200 (CEST) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) by mails.dpdk.org (Postfix) with ESMTP id 6715640688; Fri, 29 Oct 2021 21:39:52 +0200 (CEST) Received: by mail-lj1-f182.google.com with SMTP id k13so18458493ljj.12; Fri, 29 Oct 2021 12:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uta1PwfHwIGXTDtucSlca4zfrfonAQu9Xrkki/q2qbU=; b=efrnz+3QLCdasoC3lLKocfvsAURGwlvhYPlDrNfuSdUfngQH7mY7iuJbuDaXF5aTQY 3GT7E5jovxftkCZeAm0kiBKrejmhX0gShkAjj8DqA8QTTzNRIU35/sDAXJNfOVT7uuS6 jReGT6AbfzVXIUSI0s0bW0Yf13jPkIw93/djfQed9MzP8ik5okcD4gInHjhKipCJJBnC TRVmHpO5YLKDlHsSRsKJDc+o5y1WDTOMxS/41MqDbl+SfrLwVdbMnbcqJVKOcgfMZi5b gbujgbCAQRZVZlNHfPtZIzEQWp003kZ+ol+NtuNG9fC/YiEy1caxcr7TyEgSKG4m1YM9 BMkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uta1PwfHwIGXTDtucSlca4zfrfonAQu9Xrkki/q2qbU=; b=p57lF0uDtltIJIXJubXQUaL2WFROT4ahtGfua/DYTwp7EdKA1q39thUkDwMG4C80Ha 2BfS34avS1l/QuA3weJR5Wh3LmN5M6TFKhD2G2ohrZKl13nWA8/y5ejItKYPB662SHTd iQ28olZooumBr4U3Ue//L2vsLPjb9y6T6uO7nZL6v1MmVKkZIzNsnK9ncMBUIoyz3Ifo J2BOsKdCf/03xxJ727LdLRFqbLrfDXmxxTr/s7WjE7SKWjeLAngYThCg6VDOSmLbj1XH giDksPFOR7eIsayHwilWGew7jQdlgEOrLktXAbf9Lyg/QVVUVe22bf87q4ueHeoT23ZV pJsQ== X-Gm-Message-State: AOAM530XbyVwsGGS/1kyjgiTIe9SR6BZFPLRPJUlNMIV6AX+zSBCJ3mE 9zqV6wV0V350RBUp28ztIZuLovWaOJYZwA== X-Google-Smtp-Source: ABdhPJyorhtwTKLbHaAHx4ohNkGChySoESQs2RwiJIUxqpRGZUZXquholR0Bm2BL7xiwovIKpB6nDQ== X-Received: by 2002:a2e:3917:: with SMTP id g23mr13880188lja.417.1635536391771; Fri, 29 Oct 2021 12:39:51 -0700 (PDT) Received: from localhost.localdomain ([2a00:1fa2:299:2983:a00:27ff:fe90:3d24]) by smtp.gmail.com with ESMTPSA id bp31sm683148lfb.124.2021.10.29.12.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 12:39:51 -0700 (PDT) From: Alexander Bechikov To: dev@dpdk.org Cc: Alexander Bechikov , stable@dpdk.org Date: Fri, 29 Oct 2021 15:35:19 -0400 Message-Id: <20211029193519.498658-2-asb.tyum@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211029193519.498658-1-asb.tyum@gmail.com> References: <20211027111118.395928-1-asb.tyum@gmail.com> <20211029193519.498658-1-asb.tyum@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/2] mbuf: fix dump of dynamic fields and flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" I suppose this issue is introduced by d4902ed31c63 ("mbuf: check shared memory before dumping dynamic space"). Cc: stable@dpdk.org Fixes: d4902ed31c63 ("mbuf: check shared memory before dumping dynamic space") Signed-off-by: Alexander Bechikov --- v2: * Drop changes with log message from v1, because rte_errno is not always set --- lib/mbuf/rte_mbuf_dyn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mbuf/rte_mbuf_dyn.c b/lib/mbuf/rte_mbuf_dyn.c index a3bc9b66d2..4ae79383b5 100644 --- a/lib/mbuf/rte_mbuf_dyn.c +++ b/lib/mbuf/rte_mbuf_dyn.c @@ -116,8 +116,7 @@ init_shared_mem(void) mz = rte_memzone_lookup(RTE_MBUF_DYN_MZNAME); } if (mz == NULL) { - RTE_LOG(ERR, MBUF, "Failed to get mbuf dyn shared memory: %s (%d)\n", - rte_strerror(rte_errno), rte_errno); + RTE_LOG(ERR, MBUF, "Failed to get mbuf dyn shared memory\n"); return -1; } -- 2.30.2