From 125fa19faad894b8ca1e6e4d5abe4e0691810f54 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 4 Jun 2021 16:26:28 -0700 Subject: [PATCH] btdev: Remove debugs Remove left-over util_debugs. --- emulator/btdev.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 7db7a746a..ad5bb8d92 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -3424,7 +3424,6 @@ static int cmd_add_wl(struct btdev *dev, const void *data, uint8_t len) uint8_t status; bool exists = false; int i, pos = -1; - char addr[18]; /* Valid range for address type is 0x00 to 0x01 */ if (cmd->addr_type > 0x01) @@ -3433,10 +3432,6 @@ static int cmd_add_wl(struct btdev *dev, const void *data, uint8_t len) for (i = 0; i < WL_SIZE; i++) { struct btdev_wl *wl = &dev->le_wl[i]; - ba2str(&wl->addr, addr); - util_debug(dev->debug_callback, dev->debug_data, - "type 0x%02x addr %s", wl->type, addr); - if (WL_ADDR_EQUAL(wl, cmd->addr_type, &cmd->addr)) { exists = true; break; @@ -3455,10 +3450,6 @@ static int cmd_add_wl(struct btdev *dev, const void *data, uint8_t len) wl_add(&dev->le_wl[pos], cmd->addr_type, (bdaddr_t *)&cmd->addr); - ba2str(&(dev->le_wl[pos]).addr, addr); - util_debug(dev->debug_callback, dev->debug_data, - "type 0x%02x addr %s", dev->le_wl[pos].type, addr); - status = BT_HCI_ERR_SUCCESS; cmd_complete(dev, BT_HCI_CMD_LE_ADD_TO_WHITE_LIST, &status, sizeof(status)); -- 2.47.3