From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by dpdk.org (Postfix) with ESMTP id AA9E75A9B for ; Fri, 10 Jul 2015 01:01:04 +0200 (CEST) Received: by pacws9 with SMTP id ws9so159056013pac.0 for ; Thu, 09 Jul 2015 16:01:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xEhZjvZ6tQ3g71D6Ja2JTsuvCTYCizJDlt4+Y6xhOtE=; b=LREnNvAFlhwRVMsit41suNf3X92BaAmVJZ7NvV4ETqPZDHJ3wF2584Av+SqiDFUcCg xvb6w43+RQ3MFVPTB5UrU6mqs/MQnXqXpIQOGj+DgvxMxCWEcTPLsICUc2W73bwSgSrx AP33bx7B4Y6r37sMjxRUfIA71CABvPNkY5QZkv9U8YjHEtszMnEFI7URrwBCZ9CyI+3k SSX6J3ap0w+v7Q/TeV+P4XNyFlURDHD8YDSpCBv1LQ0sNSDZd9uQ/DW0RLmCi43l92K4 gwZNj5xwW2deaR7NUrkAkBDt5eyw7GVwHdUBsjz9f5Kw5Q53A1Z70mDlD+FbAHyBtFtb RScg== X-Gm-Message-State: ALoCoQnCQG1K7BuViEdHFTvB/7xaW/STwQOU9Y9JX0UurqRGumcRyeZmBwZaoScbUhhtUdhF5+yy X-Received: by 10.68.57.144 with SMTP id i16mr35998646pbq.130.1436482863983; Thu, 09 Jul 2015 16:01:03 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by smtp.gmail.com with ESMTPSA id hl6sm7146976pdb.28.2015.07.09.16.01.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 16:01:03 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Thu, 9 Jul 2015 16:01:07 -0700 Message-Id: <1436482868-7400-6-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436482868-7400-1-git-send-email-stephen@networkplumber.org> References: <1436482868-7400-1-git-send-email-stephen@networkplumber.org> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH v3 5/6] e1000: change log level of debug messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2015 23:01:05 -0000 From: Stephen Hemminger Any debug messages about hardware should be under debug (or removed) and reduce customer visible log spam. Signed-off-by: Stephen Hemminger --- drivers/net/e1000/em_ethdev.c | 5 +++-- drivers/net/e1000/igb_ethdev.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c index a306c55..29053a1 100644 --- a/drivers/net/e1000/em_ethdev.c +++ b/drivers/net/e1000/em_ethdev.c @@ -275,7 +275,7 @@ eth_em_dev_init(struct rte_eth_dev *eth_dev) /* initialize the vfta */ memset(shadow_vfta, 0, sizeof(*shadow_vfta)); - PMD_INIT_LOG(INFO, "port_id %d vendorID=0x%x deviceID=0x%x", + PMD_INIT_LOG(DEBUG, "port_id %d vendorID=0x%x deviceID=0x%x", eth_dev->data->port_id, pci_dev->id.vendor_id, pci_dev->id.device_id); @@ -1305,9 +1305,10 @@ eth_em_interrupt_action(struct rte_eth_dev *dev) } else { PMD_INIT_LOG(INFO, " Port %d: Link Down", dev->data->port_id); } - PMD_INIT_LOG(INFO, "PCI Address: %04d:%02d:%02d:%d", + PMD_INIT_LOG(DEBUG, "PCI Address: %04d:%02d:%02d:%d", dev->pci_dev->addr.domain, dev->pci_dev->addr.bus, dev->pci_dev->addr.devid, dev->pci_dev->addr.function); + tctl = E1000_READ_REG(hw, E1000_TCTL); rctl = E1000_READ_REG(hw, E1000_RCTL); if (link.link_status) { diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c index 11e8ab8..cc8bfae 100644 --- a/drivers/net/e1000/igb_ethdev.c +++ b/drivers/net/e1000/igb_ethdev.c @@ -588,7 +588,7 @@ eth_igb_dev_init(struct rte_eth_dev *eth_dev) E1000_WRITE_REG(hw, E1000_CTRL_EXT, ctrl_ext); E1000_WRITE_FLUSH(hw); - PMD_INIT_LOG(INFO, "port_id %d vendorID=0x%x deviceID=0x%x", + PMD_INIT_LOG(DEBUG, "port_id %d vendorID=0x%x deviceID=0x%x", eth_dev->data->port_id, pci_dev->id.vendor_id, pci_dev->id.device_id); @@ -1925,7 +1925,8 @@ eth_igb_interrupt_action(struct rte_eth_dev *dev) PMD_INIT_LOG(INFO, " Port %d: Link Down", dev->data->port_id); } - PMD_INIT_LOG(INFO, "PCI Address: %04d:%02d:%02d:%d", + + PMD_INIT_LOG(DEBUG, "PCI Address: %04d:%02d:%02d:%d", dev->pci_dev->addr.domain, dev->pci_dev->addr.bus, dev->pci_dev->addr.devid, -- 2.1.4