Re: [dpdk-dev] [PATCH] log: deduce log type from filename

2021-04-13 Thread David Marchand
On Fri, Apr 9, 2021 at 3:01 PM Bruce Richardson wrote: > > On Fri, Apr 09, 2021 at 02:43:34PM +0200, David Marchand wrote: > > Let's try to enforce the convention where drivers use a pmd. logtype > > with their class reflected in it and libraries use a lib. logtype. > > > > RTE_LOG_REGISTER now in

Re: [dpdk-dev] [PATCH] log: deduce log type from filename

2021-04-09 Thread Bruce Richardson
On Fri, Apr 09, 2021 at 02:43:34PM +0200, David Marchand wrote: > Let's try to enforce the convention where drivers use a pmd. logtype > with their class reflected in it and libraries use a lib. logtype. > > RTE_LOG_REGISTER now interprets the log type name: > - if none or a name starting with a .

[dpdk-dev] [PATCH] log: deduce log type from filename

2021-04-09 Thread David Marchand
Let's try to enforce the convention where drivers use a pmd. logtype with their class reflected in it and libraries use a lib. logtype. RTE_LOG_REGISTER now interprets the log type name: - if none or a name starting with a . is passed, then the default logtype is used as a prefix, - else the nam