ipmi: Cleanup DEBUG_TIMING ifdef usage
authorJohn Stultz <john.stultz@linaro.org>
Wed, 7 Jan 2015 22:24:28 +0000 (14:24 -0800)
committerCorey Minyard <cminyard@mvista.com>
Fri, 20 Feb 2015 01:54:51 +0000 (19:54 -0600)
commitf93aae9f8d30fc96fc57740f5e9260cf719c39d9
treee813e7bc3e15da14657f8c68395b11a61716359d
parent31013fa92c3a334f45dc13f4fffd5a7f0d5edca6
ipmi: Cleanup DEBUG_TIMING ifdef usage

The driver uses #ifdef DEBUG_TIMING in order to conditionally print out
timestamped debug messages. Unfortunately it adds the ifdefs all over the
usage sites.

This patch cleans it up by adding a debug_timestamp() function which
is compiled out if DEBUG_TIMING isn't present. This cleans up all
the ugly ifdefs in the function logic.

Cc: openipmi-developer@lists.sourceforge.net
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Corey Minyard <minyard@mvista.com>
drivers/char/ipmi/ipmi_si_intf.c