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 CCFCCA00C3; Tue, 7 Dec 2021 22:24:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3C9CA426E7; Tue, 7 Dec 2021 22:24:33 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id D71514114F for ; Tue, 7 Dec 2021 22:24:28 +0100 (CET) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id DFE3B20B7185; Tue, 7 Dec 2021 13:24:27 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DFE3B20B7185 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1638912267; bh=rV9pA/ciz3QkqEkZfBtrMAEvc8bMFvXbopBNZosfacI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stA1P8kuxsMA4SPHw3MGZbPBynjc6geis25tMUeaolxinm7jjRf7GUx9WipCHqri6 QqQuhv9Z7M/xGrWPPPZlxmT2h7acsQG+lTHLxDpoziPY/VQ718iPdAJe4MHBWC4kOc GrmJqT5i15g+0FC1bN93IB0XtN/Lx22kFXZSC1Oo= From: Jie Zhou To: dev@dpdk.org Cc: dmitry.kozliuk@gmail.com, bruce.richardson@intel.com, roretzla@microsoft.com, navasile@linux.microsoft.com, dmitrym@microsoft.com, pallavi.kadam@intel.com, talshn@nvidia.com, thomas@monjalon.net, aconole@redhat.com Subject: [PATCH v12 03/11] app/test: fix incorrect errno variable Date: Tue, 7 Dec 2021 13:24:15 -0800 Message-Id: <1638912263-7054-4-git-send-email-jizh@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1638912263-7054-1-git-send-email-jizh@linux.microsoft.com> References: <1638490007-9939-1-git-send-email-jizh@linux.microsoft.com> <1638912263-7054-1-git-send-email-jizh@linux.microsoft.com> 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 Fix incorrect errno variable used in memory autotest. Use rte_errno instead. Fixes: 086d426406bd ("app/test: fix memory autotests on FreeBSD") Cc: bruce.richardson@intel.com Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk --- app/test/test_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_memory.c b/app/test/test_memory.c index dbf6871e71..140ac3f3cf 100644 --- a/app/test/test_memory.c +++ b/app/test/test_memory.c @@ -63,7 +63,7 @@ check_seg_fds(const struct rte_memseg_list *msl, const struct rte_memseg *ms, /* we're able to get memseg fd - try getting its offset */ ret = rte_memseg_get_fd_offset_thread_unsafe(ms, &offset); if (ret < 0) { - if (errno == ENOTSUP) + if (rte_errno == ENOTSUP) return 1; return -1; } -- 2.31.0.vfs.0.1