diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-12 13:19:14 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-12 14:15:24 -0700 |
commit | 219e1c6e50cf8f3fdfcf152962a5b0a4c2ae7bc3 (patch) | |
tree | 8f4872c702a1358305ad9346749878dd87c38571 /emulator/hciemu.c | |
parent | 561c500795a5bc06c06543ce85477040b708b547 (diff) | |
download | bluez-219e1c6e50cf8f3fdfcf152962a5b0a4c2ae7bc3.tar.gz |
bthost: Add bthost_debug and use it on smp.c
This adds bthost_debug which wraps util_debug and make use of it in
smp.c.
Diffstat (limited to 'emulator/hciemu.c')
-rw-r--r-- | emulator/hciemu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/hciemu.c b/emulator/hciemu.c index a3ec44243..fe5ef747a 100644 --- a/emulator/hciemu.c +++ b/emulator/hciemu.c @@ -454,7 +454,7 @@ void hciemu_unref(struct hciemu *hciemu) free(hciemu); } -static void bthost_debug(const char *str, void *user_data) +static void bthost_print(const char *str, void *user_data) { struct hciemu *hciemu = user_data; @@ -484,7 +484,7 @@ static void hciemu_client_set_debug(void *data, void *user_data) struct hciemu *hciemu = user_data; btdev_set_debug(client->dev, btdev_client_debug, hciemu, NULL); - bthost_set_debug(client->host, bthost_debug, hciemu, NULL); + bthost_set_debug(client->host, bthost_print, hciemu, NULL); } bool hciemu_set_debug(struct hciemu *hciemu, hciemu_debug_func_t callback, |