From patchwork Mon Jun 15 19:23:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 242450 List-Id: U-Boot discussion From: xypron.glpk at gmx.de (Heinrich Schuchardt) Date: Mon, 15 Jun 2020 21:23:52 +0200 Subject: [PATCH v3 0/2] log: don't show function by default Message-ID: <20200615192354.3675-1-xypron.glpk@gmx.de> 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. 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 | 19 +++++++++++++++++-- test/log/syslog_test.c | 20 ++++++++++++++------ test/py/tests/test_log.py | 2 ++ 8 files changed, 68 insertions(+), 25 deletions(-) --- 2.27.0