From: John Stultz Date: Wed, 7 Jan 2015 22:24:28 +0000 (-0800) Subject: ipmi: Cleanup DEBUG_TIMING ifdef usage X-Git-Tag: fixes-v4.0-rc1~47^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f93aae9f8d30fc96fc57740f5e9260cf719c39d9;p=pandora-kernel.git 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 Signed-off-by: John Stultz Signed-off-by: Corey Minyard --- Reading git-diff-tree failed