summaryrefslogtreecommitdiff
path: root/monitor/att.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-07-05 10:43:46 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-07-05 10:43:46 -0700
commite681fae6bcceb73ebab16e6f8c4eabd6265dd40f (patch)
treed1b75bc74c7501b075d4cf5cbb98b818e6e28b1c /monitor/att.c
parent6270ad35b2f7b71dbc0a76b825f2f3ca07f936d2 (diff)
downloadbluez-e681fae6bcceb73ebab16e6f8c4eabd6265dd40f.tar.gz
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);
Diffstat (limited to 'monitor/att.c')
-rw-r--r--monitor/att.c4
1 files changed, 3 insertions, 1 deletions
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);