[PATCH v2 08/22] log: Add filter flag to deny on match

Simon Glass sjg at chromium.org
Mon Oct 12 05:35:12 CEST 2020


On Sat, 10 Oct 2020 at 13:44, Sean Anderson <seanga2 at gmail.com> wrote:
>
> Without this flag, log filters can only explicitly accept messages.
> Allowing denial makes it easier to filter certain subsystems. Unlike
> allow-ing filters, deny-ing filters are added to the beginning of the
> filter list. This should do the Right Thing most of the time, but it's
> less-universal than allowing filters to be inserted anywhere. If this
> becomes a problem, then perhaps log_filter_add* should take a filter number
> to insert before/after.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> (no changes since v1)
>
>  common/log.c  | 12 ++++++++++--
>  include/log.h | 11 ++++++++++-
>  2 files changed, 20 insertions(+), 3 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list