summaryrefslogtreecommitdiff
path: root/monitor/l2cap.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-05-16 17:37:56 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-05-18 15:35:46 -0700
commit0247ed333ea9dc0ac914bae68225d5cb3f288f80 (patch)
tree189257972d73cfb6b60c2535b5eda630827b522c /monitor/l2cap.c
parentf66673878a9f3745c9cb3cfaa85b5b8f99a929d6 (diff)
downloadbluez-0247ed333ea9dc0ac914bae68225d5cb3f288f80.tar.gz
monitor: Move print_hex_field to display.h
This moves print_hex_field to display.h and removes the duplicated code from packet.c and l2cap.c.
Diffstat (limited to 'monitor/l2cap.c')
-rw-r--r--monitor/l2cap.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index 01825ce0a..192b6c920 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -2123,20 +2123,6 @@ static void amp_packet(uint16_t index, bool in, uint16_t handle,
opcode_data->func(&frame);
}
-static void print_hex_field(const char *label, const uint8_t *data,
- uint8_t len)
-{
- char str[len * 2 + 1];
- uint8_t i;
-
- str[0] = '\0';
-
- for (i = 0; i < len; i++)
- sprintf(str + (i * 2), "%2.2x", data[i]);
-
- print_field("%s: %s", label, str);
-}
-
static void print_uuid(const char *label, const void *data, uint16_t size)
{
const char *str;