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.
_______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev