summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2012-02-13 09:12:25 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-14 14:51:36 +0200
commit92f9870934fe514bf73d956c594b4827469409a6 (patch)
tree003dc3c878359d861cf89e6501424d4b952e88a6 /plugins
parent80e106f409675222d7a3dd2ad71e6ee7c16d3a88 (diff)
downloadbluez-92f9870934fe514bf73d956c594b4827469409a6.tar.gz
mgmtops: Improve event size mismatch messages
This makes them consistent, and updates the function names.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mgmtops.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index d354bc695..5de0aa229 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -367,7 +367,7 @@ static void mgmt_new_link_key(int sk, uint16_t index, void *buf, size_t len)
struct controller_info *info;
if (len != sizeof(*ev)) {
- error("new_key event size mismatch (%zu != %zu)",
+ error("mgmt_new_link_key event size mismatch (%zu != %zu)",
len, sizeof(*ev));
return;
}
@@ -1071,7 +1071,8 @@ static void read_local_oob_data_complete(int sk, uint16_t index, void *buf,
struct btd_adapter *adapter;
if (len != sizeof(*rp)) {
- error("Wrong read_local_oob_data_complete event size");
+ error("read_local_oob_data_complete event size mismatch "
+ "(%zu != %zu)", len, sizeof(*rp));
return;
}
@@ -1313,7 +1314,7 @@ static void mgmt_device_found(int sk, uint16_t index, void *buf, size_t len)
eir_len = bt_get_le16(&ev->eir_len);
if (len != sizeof(*ev) + eir_len) {
- error("mgmt_device_found length %zu instead of expected %zu",
+ error("mgmt_device_found event size mismatch (%zu != %zu)",
len, sizeof(*ev) + eir_len);
return;
}
@@ -1445,7 +1446,7 @@ static void mgmt_new_ltk(int sk, uint16_t index, void *buf, size_t len)
struct controller_info *info;
if (len != sizeof(*ev)) {
- error("new_smp_key event size mismatch (%zu != %zu)",
+ error("mgmt_new_ltk event size mismatch (%zu != %zu)",
len, sizeof(*ev));
return;
}