ASoC: arizona: Make logging of FLL calculations clearer
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Tue, 23 Feb 2016 14:16:32 +0000 (14:16 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 24 Feb 2016 04:08:41 +0000 (13:08 +0900)
commit2595b7fe1aa3a1dfc47e549b39f7c35c5ce8a56d
tree02e9a39671aa8504844b8b3a67d6d58d341d5f12
parentd81221ff9406a3918084bfaed752894e82c5d44b
ASoC: arizona: Make logging of FLL calculations clearer

The debug logging of FLL calculations was confusing. Values were
printed in hex without indicating this by a leading 0x, and
despite these normally being required in decimal. Also where the
register value isn't the actual value (it s a power-of-two or
0 means 1, 1 means 2, ...)  it was unclear whether the actual or
register value was shown.

This patch changes the log print so that all mathematical values
are shown in decimal, all register values are shown in hex with a
0x prefix, and where the register value isn't the actual integer
value the decimal integer value is shown in () after the hex
register value.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c