Bluetooth: Fix long_term_keys debugfs output
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 31 Jan 2014 03:39:57 +0000 (19:39 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 13 Feb 2014 07:51:40 +0000 (09:51 +0200)
commitf813f1be1f82a09720e94533f46ac79276eb037d
tree3648118cc4043f908b33e48340ff9d4978d06678
parente834004b8a940ab28dace6043985ae2adf305661
Bluetooth: Fix long_term_keys debugfs output

The code was previously iterating the wrong list (and what's worse
casting entries to a type which they were not) and also missing a proper
line terminator when printing each entry. The code now also prints the
LTK type in hex for easier comparison with the kernel-defined values.

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