linux/net/bluetooth
Joe Perches e1447d8d8d Bluetooth: Add bt_printk
Add a local logging function to emit bluetooth specific
messages.  Using vsprintf extension %pV saves code/text
space.

Convert the current BT_INFO and BT_ERR macros to use bt_printk.
Remove __func__ from BT_ERR macro (and the uses).
Prefix "Bluetooth: " to BT_ERR
Remove __func__ from BT_DBG as function can be prefixed when
using dynamic_debug.

With allyesconfig:

   text    data     bss     dec     hex filename
 129956    8632   36096  174684   2aa5c drivers/bluetooth/built-in.o.new2
 134402    8632   36064  179098   2bb9a drivers/bluetooth/built-in.o.old
  14778    1012    3408   19198    4afe net/bluetooth/bnep/built-in.o.new2
  15067    1012    3408   19487    4c1f net/bluetooth/bnep/built-in.o.old
 346595   19163   86080  451838   6e4fe net/bluetooth/built-in.o.new2
 353751   19163   86064  458978   700e2 net/bluetooth/built-in.o.old
  18483    1172    4264   23919    5d6f net/bluetooth/cmtp/built-in.o.new2
  18927    1172    4264   24363    5f2b net/bluetooth/cmtp/built-in.o.old
  19237    1172    5152   25561    63d9 net/bluetooth/hidp/built-in.o.new2
  19581    1172    5152   25905    6531 net/bluetooth/hidp/built-in.o.old
  59461    3884   14464   77809   12ff1 net/bluetooth/rfcomm/built-in.o.new2
  61206    3884   14464   79554   136c2 net/bluetooth/rfcomm/built-in.o.old

with x86 defconfig (and just bluetooth):

$ size net/bluetooth/built-in.o.defconfig.*
   text    data     bss     dec     hex filename
  66358     933     100   67391   1073f net/bluetooth/built-in.o.defconfig.new
  66643     933     100   67676   1085c net/bluetooth/built-in.o.defconfig.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-06-30 19:17:12 -03:00
..
bnep Bluetooth: Use kthread API in bnep 2011-04-05 12:40:47 -03:00
cmtp Bluetooth: Kill set but unused variable 'cmd' in cmtp_recv_capimsg() 2011-06-09 16:32:21 -03:00
hidp Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid 2011-05-23 09:10:03 -07:00
rfcomm Merge master.kernel.org:/pub/scm/linux/kernel/git/padovan/bluetooth-2.6 2011-06-09 16:33:54 -03:00
af_bluetooth.c Bluetooth: remove unnecessary call to hci_sock_cleanup 2011-02-25 22:36:58 -03:00
hci_conn.c Merge master.kernel.org:/pub/scm/linux/kernel/git/padovan/bluetooth-2.6 2011-06-21 14:52:56 -03:00
hci_core.c Bluetooth: Rename function bt_err to bt_to_errno 2011-06-30 18:44:08 -03:00
hci_event.c Bluetooth: Add support for Pairing features exchange 2011-06-13 16:05:37 -03:00
hci_sock.c Bluetooth: Move blacklisting functions to hci_core 2011-06-16 15:19:41 -03:00
hci_sysfs.c Bluetooth: Add variable SSP auto-accept delay support 2011-04-28 16:02:30 -03:00
Kconfig Bluetooth: uses crypto interfaces, select CRYPTO 2011-06-27 15:12:42 -03:00
l2cap_core.c Bluetooth: Rename function bt_err to bt_to_errno 2011-06-30 18:44:08 -03:00
l2cap_sock.c Bluetooth: use bit operation on conf_state 2011-06-16 18:57:14 -03:00
lib.c Bluetooth: Add bt_printk 2011-06-30 19:17:12 -03:00
Makefile Bluetooth: Implement the first SMP commands 2011-06-13 15:11:55 -03:00
mgmt.c Bluetooth: Add blacklisting support for mgmt interface 2011-06-16 18:57:04 -03:00
sco.c Bluetooth: Rename function bt_err to bt_to_errno 2011-06-30 18:44:08 -03:00
smp.c Bluetooth: include scatterlist.h where needed 2011-06-24 15:08:48 -04:00