From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by dpdk.org (Postfix) with ESMTP id 1CC7EA496 for ; Thu, 26 Apr 2018 01:16:40 +0200 (CEST) Received: by mail-pf0-f194.google.com with SMTP id l27so16523484pfk.12 for ; Wed, 25 Apr 2018 16:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=GXSD1AJpcQzqit9X/rZz3ST+unLvZ/DYHok69llP7+w=; b=KIki8md5RiFvCHaz6ct8kFTM0609j5g43V/wb3LP7kRk3vnVs9BeBKCUVySneVvQOm pYx3AHhNVrT89sjjoDd9Mgovd4LfdmTHuo7pLVys8xdXdzhMIfeY4cZzpQGCo2vSudcS /CR0PuYhT8Qf20x/FZKsV6m4qzgTwSB7WkM6sIHyd5oPmfEhhGMxpLhDktyAB22jyrHF bpOhcVqTpz/yFbm3xC/QNVUjlbrUQwixamxDiTSMw+tGiK0f6rkwhdoB+2bSx+vzv+di aRHs7DUTcbb1X6QpMJlcD1nbYXJ6zmV4utqF67zVeCRoT4QRiIUBXrRcZKymEGAzrlLQ J/Bw== 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; bh=GXSD1AJpcQzqit9X/rZz3ST+unLvZ/DYHok69llP7+w=; b=M5ZUvYqJfXUF0XvkQVmkIfkw/Gmy27RkzzGjFL7/ggVWkJWQkrn71M4KfldF6to9LH y5xJfe0jGaUd660ryuzS1wjSMF/A5CWDNJ1vezMGsxbj1sTg2yVGjC3a060McRJ+W0ES XXukduN8X2ZDBsz8Apwjx+ZuM87VJ6fb5zSWFk0DgH5qL8Gx7JP//xJENLfZZS7fr7Ha Imgh8y/M7hOfL5sq8SRuv5KWl0EtsaoehZPHNTBPSfe59GGvdpVG48uPkcbqCNxLEJif KiUzp77adzQ00gM3H4yeyO8UBDIuLKm+z1sGefbiBaGScjhM++vo13BnBjH7CATA1IHn IizQ== X-Gm-Message-State: ALQs6tDjFMyVd8zSIFYPMXE4wlbas00CJh5/Foc2hCbwo07rah2PYFz3 +wqpDTu89RupXIL2ULVftVGLMA== X-Google-Smtp-Source: AIpwx49HTs3xuiT3rWyaR+7ara6bp9lXyceB+gQbLPrh4nYh6X4PZQBsHmumqfRGCHu1A4F1k0otlw== X-Received: by 10.99.141.193 with SMTP id z184mr20425550pgd.114.1524698200068; Wed, 25 Apr 2018 16:16:40 -0700 (PDT) Received: from xeon-e3.lan (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id w1sm33764773pfb.39.2018.04.25.16.16.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 16:16:38 -0700 (PDT) From: Stephen Hemminger To: hemant.agrawal@nxp.com, shreyansh.jain@nxp.com Cc: dev@dpdk.org, Stephen Hemminger Date: Wed, 25 Apr 2018 16:16:37 -0700 Message-Id: <20180425231637.32642-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 Subject: [dpdk-dev] [PATCH v2] dpaa2: do not log messages if bus not present X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2018 23:16:41 -0000 A typical distribution will compile with default config and all buses enabled. Therefore every driver should be silent and not log anything for this normal case. This patch gets rid of these messages when running on basic x86 environment such as bare metal or VM. fslmc: DPAA2: DPRC not available fslmc: FSLMC Bus Not Available. Skipping Signed-off-by: Stephen Hemminger --- v2 - typo in previous patch drivers/bus/fslmc/fslmc_bus.c | 2 +- drivers/bus/fslmc/fslmc_vfio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index d0b32611fe08..943c01b2874d 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -255,7 +255,7 @@ rte_fslmc_scan(void) /* Remove all devices in the list */ cleanup_fslmc_device_list(); scan_fail: - DPAA2_BUS_INFO("FSLMC Bus Not Available. Skipping"); + DPAA2_BUS_DEBUG("FSLMC Bus Not Available. Skipping"); /* Irrespective of failure, scan only return success */ return 0; } diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 675d160ba3a8..749d92dc3fc9 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -74,7 +74,7 @@ fslmc_get_container_group(int *groupid) if (!g_container) { container = getenv("DPRC"); if (container == NULL) { - DPAA2_BUS_INFO("DPAA2: DPRC not available"); + DPAA2_BUS_DEBUG("DPAA2: DPRC not available"); return -EINVAL; } -- 2.17.0