diff --git a/src/adv_monitor.c b/src/adv_monitor.c
index a5bc61c..5a0498e 100644
--- a/src/adv_monitor.c
+++ b/src/adv_monitor.c
return;
}
- btd_info(app->manager->adapter_id, "Adv Monitor app %s disconnected "
- "from D-Bus", app->owner);
+ btd_info(app->manager->adapter_id,
+ "Adv Monitor app %s disconnected from D-Bus",
+ app->owner);
if (queue_remove(app->manager->apps, app)) {
queue_foreach(app->monitors, monitor_state_released, NULL);
uint16_t adapter_id = monitor->app->manager->adapter_id;
if (!g_dbus_proxy_get_property(monitor->proxy, "Type", &iter)) {
- btd_error(adapter_id, "Failed to retrieve property Type from "
- "the Adv Monitor at path %s", path);
+ btd_error(adapter_id,
+ "Failed to retrieve property Type from the "
+ "Adv Monitor at path %s", path);
return false;
}
}
failed:
- btd_error(adapter_id, "Invalid argument of property Type of the Adv "
- "Monitor at path %s", path);
+ btd_error(adapter_id,
+ "Invalid argument of property Type of the Adv Monitor "
+ "at path %s", path);
return false;
}
monitor->high_rssi_timeout = ADV_MONITOR_UNSET_TIMER;
monitor->low_rssi_timeout = ADV_MONITOR_UNSET_TIMER;
- btd_error(adapter_id, "Invalid argument of property "
- "RSSIThresholdsAndTimers of the Adv Monitor at path %s",
+ btd_error(adapter_id,
+ "Invalid argument of property RSSIThresholdsAndTimers "
+ "of the Adv Monitor at path %s",
path);
return false;
uint16_t adapter_id = monitor->app->manager->adapter_id;
if (!g_dbus_proxy_get_property(monitor->proxy, "Patterns", &array)) {
- btd_error(adapter_id, "Failed to retrieve property Patterns "
- "from the Adv Monitor at path %s", path);
+ btd_error(adapter_id,
+ "Failed to retrieve property Patterns from the "
+ "Adv Monitor at path %s", path);
return false;
}
uint16_t adapter_id = monitor->app->manager->adapter_id;
if (status != MGMT_STATUS_SUCCESS || !param) {
- btd_error(adapter_id, "Failed to Add Adv Patterns Monitor "
- "with status 0x%02x", status);
+ btd_error(adapter_id,
+ "Failed to Add Adv Patterns Monitor with status"
+ " 0x%02x", status);
monitor->state = MONITOR_STATE_FAILED;
monitor_destroy(monitor);
return;
}
if (queue_find(app->monitors, monitor_match, proxy)) {
- btd_error(adapter_id, "Adv Monitor proxy already exists with "
- "path %s", path);
+ btd_error(adapter_id,
+ "Adv Monitor proxy already exists with path %s",
+ path);
return;
}
monitor = monitor_new(app, proxy);
if (!monitor) {
- btd_error(adapter_id, "Failed to allocate an Adv Monitor for "
- "the object at %s", path);
+ btd_error(adapter_id,
+ "Failed to allocate an Adv Monitor for the "
+ "object at %s", path);
return;
}
queue_remove(manager->apps, app);
app_destroy(app);
- btd_info(manager->adapter_id, "Path %s removed along with Adv Monitor "
- "app %s", match.path, match.owner);
+ btd_info(manager->adapter_id,
+ "Path %s removed along with Adv Monitor app %s",
+ match.path, match.owner);
return dbus_message_new_method_return(msg);
}
const uint16_t adapter_id = manager->adapter_id;
if (length < sizeof(*ev)) {
- btd_error(adapter_id, "Wrong size of Adv Monitor Removed "
- "event");
+ btd_error(adapter_id,
+ "Wrong size of Adv Monitor Removed event");
return;
}
struct btd_adv_monitor_manager *manager = user_data;
if (status != MGMT_STATUS_SUCCESS || !param) {
- btd_error(manager->adapter_id, "Failed to Read Adv Monitor "
- "Features with status 0x%02x", status);
+ btd_error(manager->adapter_id,
+ "Failed to Read Adv Monitor Features with "
+ "status 0x%02x", status);
return;
}
if (!dev) {
dev = monitor_device_create(monitor, device);
if (!dev) {
- btd_error(adapter_id, "Failed to create Adv Monitor "
- "device object.");
+ btd_error(adapter_id,
+ "Failed to create Adv Monitor device object.");
return;
}
}