]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: properly use pr_fmt() on lib.c
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 24 Apr 2012 02:45:06 +0000 (19:45 -0700)
committerGustavo Padovan <gustavo@padovan.org>
Tue, 24 Apr 2012 04:15:27 +0000 (01:15 -0300)
pr_fmt() is either defined or we redefine it. Typically
drivers define it prior to including printk.h but this
is done under the assumption that no other subsystem
it uses has already defined pr_fmt(). In such cases
pr_fmt() should be undefined and redefined.

Doing this properly shaves down compilation time quite
considerably.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/lib.c

index 506628876f3604dcdf9530852e6a27095dbf1f21..84ff96f0198fcb9aa8d5bc6217327153c6905aac 100644 (file)
 
 /* Bluetooth kernel library. */
 
+#undef pr_fmt
 #define pr_fmt(fmt) "Bluetooth: " fmt
 
 #include <linux/module.h>
 
 #include <linux/kernel.h>
+#include <linux/printk.h>
 #include <linux/stddef.h>
 #include <linux/string.h>
 #include <asm/errno.h>