[PATCH v3 04/23] log: Add new category names to log_cat_name

Tom Rini trini at konsulko.com
Tue Oct 27 18:45:49 CET 2020


On Sat, Oct 17, 2020 at 02:07:29PM -0400, Sean Anderson wrote:

> Without every category between LOGC_NONE and LOGC_COUNT present in
> log_cat_name, log_get_cat_by_name will dereference NULL pointers if it
> doesn't find a name early enough.
> 
> Fixes: c3aed5db59 ("sandbox: spi: Add more logging")
> Fixes: a5c13b68e7 ("sandbox: log: Add a category for sandbox")
> Fixes: 9f407d4ef0 ("Add core support for a bloblist to convey data from SPL")
> Fixes: cce61fc428 ("dm: devres: Convert to use logging")
> Fixes: 7ca2850cbc ("dm: core: Add basic ACPI support")
> 
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

As Simon has added the missing categories I'm deferring this specific
patch but think it should be re-posted and reworded with the build-time
sanity check as the only change.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201027/a1c87496/attachment.sig>


More information about the U-Boot mailing list