mbox series

[v4,0/2] log: don't show function by default

Message ID 20200617195245.11530-1-xypron.glpk@gmx.de
Headers show
Series log: don't show function by default | expand

Message

Heinrich Schuchardt June 17, 2020, 7:52 p.m. UTC
When replacing printf() by log function calls it is not desirable to output
calling function name. So we should adjust the default log format to show
the message only.

Using the BIT() macro makes the log format related coding more readable.

v4:
	leave an empty line in enum log_fmt before composite values
	rebase on origin/master

Heinrich Schuchardt (2):
  log: don't show function by default
  log: use BIT() instead of 1 <<

 cmd/log.c                 |  4 ++--
 common/Kconfig            | 18 ++++++++++++++++++
 common/log.c              |  2 +-
 common/log_console.c      | 14 +++++++-------
 common/log_syslog.c       | 14 +++++++-------
 include/log.h             | 18 +++++++++++++++++-
 test/log/syslog_test.c    | 20 ++++++++++++++------
 test/py/tests/test_log.py |  2 ++
 8 files changed, 68 insertions(+), 24 deletions(-)

--
2.27.0