On 12/9/2019 9:46 PM, Alfredo Cardigliano wrote: > Add debug options to the config file. > Define macros used for logs and make use of config file options > to enable them. > > Signed-off-by: Alfredo Cardigliano <cardigli...@ntop.org> > Reviewed-by: Shannon Nelson <snel...@pensando.io>
<...> > @@ -0,0 +1,15 @@ > +/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) > + * Copyright(c) 2018-2019 Pensando Systems, Inc. All rights reserved. > + */ > + > +#include "ionic_logs.h" > + > +int ionic_logtype_driver; > + > +RTE_INIT(ionic_init_log) > +{ > + ionic_logtype_driver = rte_log_register("pmd.net.ionic.driver"); Up to you, but you can go with simpler "pmd.net.ionic", not sure what additional value the last 'driver' bit is adding.