lib: Add ba2strlc to match kernel printk format
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Tue, 3 Dec 2019 01:03:57 +0000 (17:03 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:47 +0000 (14:30 +0530)
commit1f35901836dfbb16abfcc5bc3f31eddc69469f54
tree10f37df13dedea0b277e357b9f73ba72b06548b1
parentdf1341a91402f4628ee6bc36d25e2b636191a040
lib: Add ba2strlc to match kernel printk format

When the kernel prints the bluetooth address (via %pMR), it prints the
address in lower case. ba2strlc should be used in cases where we should
match the kernel casing (i.e. addresses assigned to /dev/uhid and
/dev/uinput)

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/bluetooth.c
lib/bluetooth.h