]> git.baikalelectronics.ru Git - uboot.git/commit
log: mute messages generated by log drivers
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 14 Sep 2020 08:01:00 +0000 (10:01 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:54:13 +0000 (12:54 -0600)
commit7f7cddd2728f2661e18d35fa0d6e79945bd37c7a
treeea457a190f382e0a317c501fd0a360b5cdbbedc6
parent18d51306abd3bca3404135156761965ab015e8b6
log: mute messages generated by log drivers

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@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/log.c
common/log_syslog.c