All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] log: convert pr_*() to logging
@ 2021-01-04  7:02 Heinrich Schuchardt
  2021-01-04  7:02 ` [PATCH 1/5] ram: k3-j721e: rename BIT_MASK() Heinrich Schuchardt
                   ` (4 more replies)
  0 siblings, 5 replies; 27+ messages in thread
From: Heinrich Schuchardt @ 2021-01-04  7:02 UTC (permalink / raw)
  To: u-boot

In drivers we use a family of printing functions including pr_err() and
pr_cont(). CONFIG_LOGLEVEL is used to control which of these lead to output
via printf().

Our logging functions allow finer grained control of output. So replace
printf() by the matching logging functions. The usage of CONFIG_LOGLEVEL
remains unchanged.

The first patch changes the k3-j721e RAM driver to avoid a duplicate use of
the macro name BIT_MASK().

The second patch ensures that debug_cond() can be used like a function.

The third patch provides macros for logging at levels EMERGENCY, ALERT,
CRITICAL and for message continuation.

The fourth patch uses the logging macros to implement the pr_*() macros.

The fifth patch provices a unit test.

Heinrich Schuchardt (5):
  ram: k3-j721e: rename BIT_MASK()
  log: make debug_cond() function like
  log: provide missing macros
  log: convert pr_*() to logging
  test: unit test for pr_err(), pr_cont()

 drivers/ram/k3-j721e/lpddr4.c         | 14 ++---
 drivers/ram/k3-j721e/lpddr4_private.h | 20 ++++---
 include/linux/bitops.h                |  4 +-
 include/linux/printk.h                | 82 +++++++++++++++------------
 include/log.h                         | 25 +++++---
 test/log/Makefile                     |  1 +
 test/log/pr_cont_test.c               | 45 +++++++++++++++
 7 files changed, 129 insertions(+), 62 deletions(-)
 create mode 100644 test/log/pr_cont_test.c

--
2.29.2

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

end of thread, other threads:[~2021-03-02  3:47 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-04  7:02 [PATCH 0/5] log: convert pr_*() to logging Heinrich Schuchardt
2021-01-04  7:02 ` [PATCH 1/5] ram: k3-j721e: rename BIT_MASK() Heinrich Schuchardt
2021-01-07 12:36   ` Simon Glass
2021-01-18 13:02   ` Tom Rini
2021-01-04  7:02 ` [PATCH 2/5] log: make debug_cond() function like Heinrich Schuchardt
2021-01-07 12:36   ` Simon Glass
2021-01-18 13:02   ` Tom Rini
2021-01-04  7:02 ` [PATCH 3/5] log: provide missing macros Heinrich Schuchardt
2021-01-07 12:36   ` Simon Glass
2021-01-18 13:02   ` Tom Rini
2021-01-04  7:02 ` [PATCH 4/5] log: convert pr_*() to logging Heinrich Schuchardt
2021-01-07 12:36   ` Simon Glass
2021-01-17  0:16   ` Tom Rini
2021-01-17  7:37     ` Heinrich Schuchardt
2021-01-18 13:02       ` Tom Rini
2021-01-18 15:30         ` Tom Rini
2021-02-18  9:16           ` Heinrich Schuchardt
2021-02-18 13:05             ` Tom Rini
2021-02-18 15:04               ` Patrice CHOTARD
2021-01-17  0:37   ` Sean Anderson
2021-01-17  7:26     ` Heinrich Schuchardt
2021-01-17 22:27       ` Sean Anderson
2021-01-17 23:13         ` Heinrich Schuchardt
2021-03-02  3:47   ` Tom Rini
2021-01-04  7:02 ` [PATCH 5/5] test: unit test for pr_err(), pr_cont() Heinrich Schuchardt
2021-01-07 12:36   ` Simon Glass
2021-01-18 13:02   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.