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 5BBF4A0350; Thu, 23 Dec 2021 20:22:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DCFDA4068C; Thu, 23 Dec 2021 20:22:04 +0100 (CET) Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id A4BBE4067B for ; Thu, 23 Dec 2021 20:22:03 +0100 (CET) Received: by mail-pj1-f44.google.com with SMTP id z9-20020a17090a7b8900b001b13558eadaso9568490pjc.4 for ; Thu, 23 Dec 2021 11:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NNYogc7Gg03PsBizkei9y2dtcFffujOwX2OYthlolvE=; b=33xkcq8fB+tRfvnpXVmYqwYyd1LYVUeySUtTHOKHoI/60HI0CwVDmnevWJFNM9kpWu HwbiIo2Npo3jZr0/13p2sGtjtvlF0bR4kiDkDdfqfqhHG0ADOIM5oKQY0WZP9JAIB/ff Mwvk4nzrPsPXLGg6yTHoawOHMQWuXXEfYJ1/IAHLtb8nhOFJl7BvgRK2qiEemcZfJab+ 4x1sEWuLHiJYBR50WBkB6Ym9Mmmm70PUGYf05Cu3Jl94GSG93c7nauAsxJ0ZZ4Gtt3bk Aem5B1OkVuZe372xB7e8v1qFrD6TZ/HkXcNeAy5lPl96ClbaXbNQdwaCN5vU/2w/vyh/ gq1A== 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:mime-version :content-transfer-encoding; bh=NNYogc7Gg03PsBizkei9y2dtcFffujOwX2OYthlolvE=; b=0vRlSY7uXZ2NwvxoPDD3l233DFDSkoX/vSLSCzdUfSukWW0GQhYCmkwwOE+XH0lioC stLCEKXUJvh1bziXWz7/ca96jpTukgSM4bxpIZFhK255cTs6dNf7QIHsfzMk3scWrpWO MXcLrcT/aeSP91ZoZUGwjcPoJvG4+ZCxU9nDB+12GRoSn6Ru8V9PW0BLXvfgvXE4AIRX X8Hf3GYFGHz9wrFh6S8yYNpetxyGvKKzCMXrVGMOhLCiofARVMIoiMu/CsyXl0DGfeCg 0SWcJBzGiIPEQ5Af7z5mjMhJJWXLRhHNiLvAY/I70ufR2rgDUj26fEiHF/CVmlOSNOOg QKsQ== X-Gm-Message-State: AOAM531RAR8B9sYHTrsSwZVXlljV5yOfdqN4Daynv4t8y2uWbTGBr2u7 zkKz+VIyr19qoGN2+IoO1RFLaVejOCWObA== X-Google-Smtp-Source: ABdhPJy8/qPwTzSh2NbDsL+0BJ8lCPU8qBKlPwPqAr7a144EnrQUknMoGFetLao+g0nDDp0Q9nuX/Q== X-Received: by 2002:a17:90a:ba03:: with SMTP id s3mr4335393pjr.219.1640287322248; Thu, 23 Dec 2021 11:22:02 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id v1sm6597051pfg.169.2021.12.23.11.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 11:22:01 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH] eal: log hugepage create errors with filename Date: Thu, 23 Dec 2021 11:21:58 -0800 Message-Id: <20211223192158.143591-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 While debugging running DPDK service in a container, it is useful to see which file creation failed. Don't hide this failure with DEBUG. Signed-off-by: Stephen Hemminger --- lib/eal/linux/eal_memalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/eal/linux/eal_memalloc.c b/lib/eal/linux/eal_memalloc.c index 337f2bc739cf..16b58d861b31 100644 --- a/lib/eal/linux/eal_memalloc.c +++ b/lib/eal/linux/eal_memalloc.c @@ -308,8 +308,8 @@ get_seg_fd(char *path, int buflen, struct hugepage_info *hi, if (fd < 0) { fd = open(path, O_CREAT | O_RDWR, 0600); if (fd < 0) { - RTE_LOG(ERR, EAL, "%s(): open failed: %s\n", - __func__, strerror(errno)); + RTE_LOG(ERR, EAL, "%s(): open '%s' failed: %s\n", + __func__, path, strerror(errno)); return -1; } /* take out a read lock and keep it indefinitely */ @@ -346,8 +346,8 @@ get_seg_fd(char *path, int buflen, struct hugepage_info *hi, fd = open(path, O_CREAT | O_RDWR, 0600); if (fd < 0) { - RTE_LOG(DEBUG, EAL, "%s(): open failed: %s\n", - __func__, strerror(errno)); + RTE_LOG(ERR, EAL, "%s(): open '%s' failed: %s\n", + __func__, path, strerror(errno)); return -1; } /* take out a read lock */ -- 2.30.2