From e681fae6bcceb73ebab16e6f8c4eabd6265dd40f Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 5 Jul 2022 10:43:46 -0700 Subject: [PATCH] monitor: Fix build error in some targets This fixes the following error: monitor/att.c: In function 'print_attribute': monitor/att.c:1850:35: error: lvalue required as unary '&' operand print_uuid(label, &cpu_to_le16(uuid->value.u16), 2); --- monitor/att.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monitor/att.c b/monitor/att.c index 7ab97c286..b7470f7a2 100644 --- a/monitor/att.c +++ b/monitor/att.c @@ -1847,7 +1847,9 @@ static void print_attribute(struct gatt_db_attribute *attr) switch (uuid->type) { case BT_UUID16: sprintf(label, "Handle: 0x%4.4x Type", handle); - print_uuid(label, &cpu_to_le16(uuid->value.u16), 2); + print_field("%s: %s (0x%4.4x)", label, + bt_uuid16_to_str(uuid->value.u16), + uuid->value.u16); return; case BT_UUID128: sprintf(label, "Handle: 0x%4.4x Type", handle); -- 2.47.3