[dpdk-dev] [PATCH v2] log:Change magic number on RTE_LOG_LEVEL to an enum name

2015-08-02 Thread Stephen Hemminger
On Sun, 2 Aug 2015 16:40:24 -0500 Keith Wiles wrote: > 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_ define into a enum of values with > the same names to reduce maintaining the define values. > > T

[dpdk-dev] [PATCH v2] log:Change magic number on RTE_LOG_LEVEL to an enum name

2015-08-02 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_ define into a enum of values with the same names to reduce maintaining the define values. The change is to use an enum in place of a magic number, plus we get th