From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by dpdk.org (Postfix) with ESMTP id 49E298DAF for ; Thu, 26 Apr 2018 01:00:13 +0200 (CEST) Received: by mail-pg0-f67.google.com with SMTP id n9so1602117pgq.5 for ; Wed, 25 Apr 2018 16:00:13 -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=OYV4o3EauJpLCha/3gnDnnb087Uri4cXXmWGYOzfZEo=; b=A+rW6utFBNt+3/MxzNAti204j3tLTNidp860HGXMrd+WufVIscnteoLApQyzupcYO4 x8OJFbUIL+aZHdlPIUJ89TSsOYhKmVOHMjKH0ywQ8TFTKmxVdS+FwcN5zhrvV94U/4Ku v66e//pqRR6G+v82c8cBO0o7AKenjxHUN4b2obnCk2Q9XojD3Ln/xWNjYh1B3uC8/bfs 2PkkBgJquEG2Do8UVffjyyaRLBxFlmt7iXPBBf7L8xRUMxvjZHCxBU8dChkGHOgRFLrr IECjUUKlpoDnobjKQvFz+ZzbBaVZQ6G/+hwSHtmR7a95jo8L/hmAZ5EGUng+y5pfMZMq KFKw== 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=OYV4o3EauJpLCha/3gnDnnb087Uri4cXXmWGYOzfZEo=; b=GjJABfbO3OF/BLWfSe4eMuexplP9fFNVVUrAItL+4MofAJJVndDxog3BmVfgB43RHS 6jEAGSWLQG4GZXR+3ZKt95QojuD/nJjLh4AEGAp5jCwNL32iWobF9/n+f3oxrYryoU4s olpRIkmUtIjURvemLaapoZAvyklp/A+dems8Blx2bng7TAL7D41h9AtM8F3aG0tpA73+ C6tzqYKi4lXs0IPvYsPxM2pOsHA5bqWiX16oEnd348ToWLbK5ULOSJUmwhA21DS9DPRE qghKnr4QoT/5xrsnbi5RXWsGXi/IrP9rr68ITqKes4LkqGAMnm+KV51+yzXvPAAJ4Q3s YogQ== X-Gm-Message-State: ALQs6tDY5Pr6Yngbje+B+pq1ljImgDkXmkNoQmo4QzPC/qCX1g30OnVw Eb32dQtStraOjr9AFjtx9+WQdQ== X-Google-Smtp-Source: AIpwx4/8MSs5xTYpBJNAi5GwX2c+hsD2o5dMpTszPZ+SmOpzew0et2ed3rmyoT6ZeVZ7LQj/f9SQSQ== X-Received: by 10.101.102.198 with SMTP id c6mr23907768pgw.127.1524697212437; Wed, 25 Apr 2018 16:00:12 -0700 (PDT) Received: from xeon-e3.lan (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id c64sm39722388pfe.152.2018.04.25.16.00.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 16:00:11 -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:00:08 -0700 Message-Id: <20180425230008.31377-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 Subject: [dpdk-dev] [PATCH 18.05-rc2] 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:00:13 -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 --- 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..30421896919e 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