public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/4] log: Fix the syslog spam when running tests
@ 2020-09-12 18:28 Simon Glass
  2020-09-12 18:28 ` [PATCH 1/4] log: Add a flag to enable log drivers Simon Glass
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Simon Glass @ 2020-09-12 18:28 UTC (permalink / raw)
  To: u-boot

At present running some sandbox tests produces unwanted ethernet errors
from the syslog driver, e.g.:

$ ./u-boot -c "ut bloblist"

Running 5 bloblist tests
Test: bloblist_test_bad_blob
Test: bloblist_test_blob
Test: bloblist_test_blob_ensure
Failed to allocate e0 bytes size=100, need size=130
No ethernet found.
bloblist add: returning err=-28
No ethernet found.
Test: bloblist_test_checksum
Checksum f3129fae != 338fbdc
No ethernet found.
Bad checksum: returning err=-5
No ethernet found.
...

This series fixes this by making the syslog driver disabled by default. It
can be enabled with a function call.


Simon Glass (4):
  log: Add a flag to enable log drivers
  log: Drop #ifdef in log_test
  log: Add a way to enable/disable a log device
  log: Disable the syslog driver by default

 common/log.c                  | 42 ++++++++++++++++++++++++++++++++++-
 common/log_console.c          |  1 +
 include/log.h                 | 28 ++++++++++++++++++++++-
 test/log/log_test.c           |  9 ++++++--
 test/log/syslog_test.c        | 24 ++++++++++++++++++++
 test/log/syslog_test.h        | 16 +++++++++++++
 test/log/syslog_test_ndebug.c |  2 ++
 test/py/tests/test_log.py     |  8 +++++++
 8 files changed, 126 insertions(+), 4 deletions(-)

-- 
2.28.0.618.gf4bc123cb7-goog

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-10-12  1:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-12 18:28 [PATCH 0/4] log: Fix the syslog spam when running tests Simon Glass
2020-09-12 18:28 ` [PATCH 1/4] log: Add a flag to enable log drivers Simon Glass
2020-10-12  1:14   ` Tom Rini
2020-09-12 18:28 ` [PATCH 2/4] log: Drop #ifdef in log_test Simon Glass
2020-10-12  1:14   ` Tom Rini
2020-09-12 18:28 ` [PATCH 3/4] log: Add a way to enable/disable a log device Simon Glass
2020-09-12 20:24   ` Heinrich Schuchardt
2020-09-13  1:24     ` Simon Glass
2020-10-12  1:15   ` Tom Rini
2020-09-12 18:28 ` [PATCH 4/4] log: Disable the syslog driver by default Simon Glass
2020-09-12 20:16   ` Heinrich Schuchardt
2020-09-12 20:24     ` Simon Glass
2020-09-12 20:34       ` Heinrich Schuchardt
2020-09-13  1:24         ` Simon Glass
2020-09-13  6:47           ` Heinrich Schuchardt
2020-09-13 13:26             ` Simon Glass
2020-10-12  1:15   ` Tom Rini
2020-09-14  8:24 ` [PATCH 0/4] log: Fix the syslog spam when running tests Heinrich Schuchardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox