]> git.dujemihanovic.xyz Git - u-boot.git/commit
log: Add filter flag to deny on match
authorSean Anderson <seanga2@gmail.com>
Tue, 27 Oct 2020 23:55:26 +0000 (19:55 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 30 Oct 2020 14:55:26 +0000 (10:55 -0400)
commitfe3b1a2d21fb35ac212066dd74b7cc4b6bfbccc9
tree9471cfda8361eff00c050c3e9148520328f06790
parenta02f84ee9c6f42137671b74ec3bb9d159b10b7ee
log: Add filter flag to deny on match

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@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/log.c
include/log.h