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>
45 jobs for testing in 58 minutes and 20 seconds (queued for 5 minutes and 33 seconds)
Status Job ID Name Coverage
  Testsuites
passed #153061
all
Build envtools

00:00:16

passed #153060
all
Build tools-only

00:00:16

passed #153059
all
Check for configs without MAINTAINERS entry

00:00:15

passed #153062
all
Run binman, buildman, dtoc, Kconfig and patman testsuites

00:00:44

passed #153063
all
Run tests for Nokia RX-51 (aka N900)

00:02:08

passed #153055
all
cppcheck

00:00:49

passed #153056
all
grep TODO/FIXME/HACK

00:00:15

passed #153057
all
htmldocs

00:00:21

passed #153058
all
sloccount

00:00:28

 
  Test.Py
passed #153067
all
evb-ast2500 test.py

00:00:31

passed #153071
all
integratorcp_cm926ejs test.py

00:00:26

passed #153082
all
qemu-ppce500 test.py

00:00:26

passed #153083
all
qemu-riscv32 test.py

00:00:48

passed #153085
all
qemu-riscv32_spl test.py

00:00:29

passed #153084
all
qemu-riscv64 test.py

00:00:48

passed #153086
all
qemu-riscv64_spl test.py

00:00:36

passed #153087
all
qemu-x86 test.py

00:01:01

passed #153088
all
qemu-x86_64 test.py

00:01:02

passed #153072
all
qemu_arm test.py

00:01:06

passed #153073
all
qemu_arm64 test.py

00:01:06

passed #153078
all
qemu_malta test.py

00:00:27

passed #153080
all
qemu_malta64 test.py

00:00:27

passed #153081
all
qemu_malta64el test.py

00:00:27

passed #153079
all
qemu_maltael test.py

00:00:27

passed #153074
all
qemu_mips test.py

00:00:27

passed #153076
all
qemu_mips64 test.py

00:00:27

passed #153077
all
qemu_mips64el test.py

00:00:26

passed #153075
all
qemu_mipsel test.py

00:00:27

passed #153089
all
r2dplus_i82557c test.py

00:01:12

passed #153090
all
r2dplus_pcnet test.py

00:00:30

passed #153091
all
r2dplus_rtl8139 test.py

00:00:30

passed #153092
all
r2dplus_tulip test.py

00:00:59

passed #153064
all
sandbox test.py

00:01:24

passed #153065
all
sandbox with clang test.py

00:01:27

passed #153068
all
sandbox_flattree test.py

00:00:44

passed #153066
all
sandbox_spl test.py

00:00:30

passed #153069
all
vexpress_ca15_tc2 test.py

00:00:27

passed #153070
all
vexpress_ca9x4 test.py

00:00:33

passed #153094
all
xilinx_versal_virt test.py

00:00:27

passed #153093
all
xilinx_zynq_virt test.py

00:00:29

passed #153095
all
xtfpga test.py

00:00:54

 
  World Build
passed #153096
all
build all 32bit ARM platforms

00:32:48

passed #153097
all
build all 64bit ARM platforms

00:05:44

passed #153098
all
build all PowerPC platforms

00:04:02

passed #153099
all
build all other platforms

00:09:40