Bluetooth: Introduce SMP_DBG macro for low-level debuging
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 1 Dec 2014 20:03:16 +0000 (22:03 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:21 +0000 (16:51 +0100)
commitc7a3d57db67ce7524c72ecb33f82c099f270a109
treedebe8b6b8b40080cf9ec81a589e5af6d1f5625f3
parenta29b073351ffdda0ce9745f3bd98f5a513c523d7
Bluetooth: Introduce SMP_DBG macro for low-level debuging

The various inputs & outputs of the crypto functions as well as the
values of the ECDH keys can be considered security sensitive. They
should therefore not end up in dmesg by mistake. This patch introduces a
new SMP_DBG macro which requires explicit compilation with -DDEBUG to be
enabled. All crypto related data logs now use this macro instead of
BT_DBG.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c