[dpdk-dev] [PATCH] log:Change magic number on RTE_LOG_LEVEL to a define

2015-08-02 Thread Thomas Monjalon
2015-08-02 20:58, Wiles, Keith: > On 8/2/15, 3:44 PM, "Thomas Monjalon" wrote: > > >2015-08-02 19:10, Wiles, Keith: > >> On 8/2/15, 12:15 PM, "Thomas Monjalon" > >>wrote: > >> >2015-06-06 19:04, Keith Wiles: > >> >> +# Log level use: RTE_LOG_XXX > >> >> +# XXX = NOOP, EMERG, ALERT, CRIT, ERR,

[dpdk-dev] [PATCH] log:Change magic number on RTE_LOG_LEVEL to a define

2015-08-02 Thread Thomas Monjalon
2015-08-02 19:10, Wiles, Keith: > On 8/2/15, 12:15 PM, "Thomas Monjalon" wrote: > >2015-06-06 19:04, Keith Wiles: > >> +# Log level use: RTE_LOG_XXX > >> +# XXX = NOOP, EMERG, ALERT, CRIT, ERR, WARNING, NOTICE, INFO or DEBUG > >> +# Look in rte_log.h for others if any. > >> +# > > > >I think t

[dpdk-dev] [PATCH] log:Change magic number on RTE_LOG_LEVEL to a define

2015-08-02 Thread Wiles, Keith
On 8/2/15, 3:44 PM, "Thomas Monjalon" wrote: >2015-08-02 19:10, Wiles, Keith: >> On 8/2/15, 12:15 PM, "Thomas Monjalon" >>wrote: >> >2015-06-06 19:04, Keith Wiles: >> >> +# Log level use: RTE_LOG_XXX >> >> +# XXX = NOOP, EMERG, ALERT, CRIT, ERR, WARNING, NOTICE, INFO or >>DEBUG >> >> +# Look

[dpdk-dev] [PATCH] log:Change magic number on RTE_LOG_LEVEL to a define

2015-08-02 Thread Thomas Monjalon
2015-06-06 19:04, Keith Wiles: > --- a/config/common_bsdapp > +++ b/config/common_bsdapp > @@ -93,12 +93,18 @@ CONFIG_RTE_MAX_NUMA_NODES=8 > CONFIG_RTE_MAX_MEMSEG=256 > CONFIG_RTE_MAX_MEMZONE=2560 > CONFIG_RTE_MAX_TAILQ=32 > -CONFIG_RTE_LOG_LEVEL=8 > CONFIG_RTE_LOG_HISTORY=256 > CONFIG_RTE_EAL

[dpdk-dev] [PATCH] log:Change magic number on RTE_LOG_LEVEL to a define

2015-08-02 Thread Wiles, Keith
On 8/2/15, 2:10 PM, "dev on behalf of Wiles, Keith" wrote: >On 8/2/15, 12:15 PM, "Thomas Monjalon" wrote: > >>2015-06-06 19:04, Keith Wiles: >>> --- a/config/common_bsdapp >>> +++ b/config/common_bsdapp >>> @@ -93,12 +93,18 @@ CONFIG_RTE_MAX_NUMA_NODES=8 >>> CONFIG_RTE_MAX_MEMSEG=256 >>> CONFI

[dpdk-dev] [PATCH] log:Change magic number on RTE_LOG_LEVEL to a define

2015-08-02 Thread Wiles, Keith
On 8/2/15, 12:15 PM, "Thomas Monjalon" wrote: >2015-06-06 19:04, Keith Wiles: >> --- a/config/common_bsdapp >> +++ b/config/common_bsdapp >> @@ -93,12 +93,18 @@ CONFIG_RTE_MAX_NUMA_NODES=8 >> CONFIG_RTE_MAX_MEMSEG=256 >> CONFIG_RTE_MAX_MEMZONE=2560 >> CONFIG_RTE_MAX_TAILQ=32 >> -CONFIG_RTE_LOG

[dpdk-dev] [PATCH] log:Change magic number on RTE_LOG_LEVEL to a define

2015-06-06 Thread Keith Wiles
Config files used RTE_LOG_LEVEL=8 to set log level to DEBUG. Using a the RTE_LOG_ is easier to maintain. Converted the RTE_LOG_ defines into a enum of values with the same names for to reduct maintaining the values and allow debuggers to print the name of the value. Signed-off-by: Keith W