]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pxa: fix i2c_pxa_scream_blue_murder() debug output
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 27 Apr 2020 18:49:22 +0000 (19:49 +0100)
committerWolfram Sang <wsa@kernel.org>
Tue, 5 May 2020 12:50:55 +0000 (14:50 +0200)
commit5c8180a12934f07fabb055a4d820fb519db9b08f
tree7b5d745080bc2fc64fc65bf9c34c6af153876323
parenta6b3712a9fd4e2da54c82b09aaca4ae688128240
i2c: pxa: fix i2c_pxa_scream_blue_murder() debug output

The IRQ log output is supposed to appear on a single line.  However,
commit ea437d4f176b ("i2c: pxa: Update debug function to dump more info
on error") resulted in it being printed one-entry-per-line, which is
excessively long.

Fixing this is not a trivial matter; using pr_cont() doesn't work as
the previous dev_dbg() may not have been compiled in, or may be
dynamic.

Since the rest of this function output is at error level, and is also
debug output, promote this to error level as well to avoid this
problem.

Reduce the number of always zero prefix digits to save screen real-
estate.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-pxa.c