diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 562bb09..c8d6ceb 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
struct btd_adapter *adapter;
if (len < sizeof(*rp)) {
- error("Too small pair_device complete event");
+ error("Too small set_local_name complete event");
return;
}
DBG("hci%d name %s", index, (char *) rp->name);
if (index > max_index) {
- error("Unexpected index %u in pair_device complete", index);
+ error("Unexpected index %u in set_local_name complete", index);
return;
}