[PATCH 1/1] log: mute messages generated by log drivers

Simon Glass sjg at chromium.org
Thu Sep 17 03:10:01 CEST 2020


On Mon, 14 Sep 2020 at 02:01, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> When a message is written by a log driver (e.g. via the network stack) this
> may result in the generation of further messages. We cannot allow these
> additional messages to be emitted as this might result in an infinite
> recursion.
>
> Up to now only the syslog driver was safeguarded. We should safeguard all
> log drivers instead.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  common/log.c        | 13 ++++++++++++-
>  common/log_syslog.c |  8 --------
>  2 files changed, 12 insertions(+), 9 deletions(-)

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


More information about the U-Boot mailing list