i2c-pxa: only define 'blue_murder'-function if DEBUG is #defined
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 3 Nov 2009 11:53:41 +0000 (12:53 +0100)
committerBen Dooks <ben-linux@fluff.org>
Wed, 19 May 2010 23:19:00 +0000 (00:19 +0100)
commit0d813d9960444470c4bebb73c2bde6697543fee9
tree51f9b4786f7b3c5c4152b0854b01ac211dd27fb8
parent29412e69007c17d6866a50d0b65fb0d808824370
i2c-pxa: only define 'blue_murder'-function if DEBUG is #defined

This talkative function is also called on timeouts. As timeouts can
happen on regular writes to EEPROMs (no error case), this creates false
positives.  Giving lots of details is interesting only for developers
anyhow, so just use the function if DEBUG is #defined.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Cc: Roel Kluin <roel.kluin@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
drivers/i2c/busses/i2c-pxa.c