From: Ferruh Yigit Subject: Re: [PATCH v4 02/22] net/atlantic: logging macroes and some typedefs Date: Wed, 10 Oct 2018 11:24:57 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Pavel Belous To: Igor Russkikh , "dev@dpdk.org" Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id BDC6E1B4E4 for ; Wed, 10 Oct 2018 12:25:05 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/9/2018 10:31 AM, Igor Russkikh wrote: > Signed-off-by: Igor Russkikh > Signed-off-by: Pavel Belous <...> > @@ -168,3 +171,16 @@ atl_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) > RTE_PMD_REGISTER_PCI(net_atlantic, rte_atl_pmd); > RTE_PMD_REGISTER_PCI_TABLE(net_atlantic, pci_id_atl_map); > RTE_PMD_REGISTER_KMOD_DEP(net_atlantic, "* igb_uio | uio_pci_generic"); > + > +RTE_INIT(atl_init_log); > +static void > +atl_init_log(void) You can merge these two: RTE_INIT(atl_init_log) { .... } > +{ > + atl_logtype_init = rte_log_register("pmd.atlantic.init"); Log type string format is "pmd.net.atlantic.init" > + if (atl_logtype_init >= 0) > + rte_log_set_level(atl_logtype_init, RTE_LOG_DEBUG); > + atl_logtype_driver = rte_log_register("pmd.atlantic.driver"); same here related to format.