zck_log: allow a callback for logging
authorStefano Babic <sbabic@denx.de>
Thu, 16 Sep 2021 10:24:45 +0000 (12:24 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 23 Sep 2021 15:52:43 +0000 (17:52 +0200)
commit59062e77589a935f42249ba52d773c963e8f220b
treece44c81380c6a2589de6b979a99afc5ecf87ae6f
parent131981ab9bd0baae3a9231fc63d3d66d8689b2c7
zck_log: allow a callback for logging

When zck is used as library, the caller has already its own LOG system.
It is nice to redirect zck's log into the main logger. ZCK can already
write into a fd specified by the user, but this add complexity in case
it cannot be mapped, for example if LOG should be sent to network or is
managed in a different way. iNot only, information like loglevel are
lost.

Signed-off-by: Stefano Babic <sbabic@denx.de>
include/zck.h.in
src/lib/log.c