summaryrefslogtreecommitdiff
path: root/lib/bluetooth.h
diff options
context:
space:
mode:
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>2019-12-02 17:03:57 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2019-12-03 18:36:34 +0200
commitcf48a5870a7044c66821238fd83df707096114b0 (patch)
tree3df644c88ae6f2779392632f60a7cb1364d1f3c7 /lib/bluetooth.h
parent73401290cfe79853d4957a2d603237b1e73c4b71 (diff)
downloadbluez-cf48a5870a7044c66821238fd83df707096114b0.tar.gz
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)
Diffstat (limited to 'lib/bluetooth.h')
-rw-r--r--lib/bluetooth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index eb279260e..756dce164 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -325,6 +325,7 @@ void baswap(bdaddr_t *dst, const bdaddr_t *src);
bdaddr_t *strtoba(const char *str);
char *batostr(const bdaddr_t *ba);
int ba2str(const bdaddr_t *ba, char *str);
+int ba2strlc(const bdaddr_t *ba, char *str);
int str2ba(const char *str, bdaddr_t *ba);
int ba2oui(const bdaddr_t *ba, char *oui);
int bachk(const char *str);