[LEDE-DEV] [PATCH][ubox] Add log priority filtering to daemon

David Lang david at lang.hm
Wed Nov 8 11:40:19 PST 2017


On Wed, 8 Nov 2017, John Crispin wrote:

> you can probably drop the validation. if the users passes 9 as a 
> priority everything will be logged. passing -1 will cause silent logging.

you should do limit checks and cap the internal value to the limit, otherwise 
you have to do more work for each log message than a simple mask and unsigned 
compare.



More information about the Lede-dev mailing list