From c367f38ea80d26ebd1262e263747a4362cf94dc8 Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Wed, 4 Mar 2015 13:57:50 -0800 Subject: [PATCH] core/gatt: Remove spammy log messages This patch removes some spammy debug log messages regarding CEP/CCC descriptor processing. --- src/gatt-database.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gatt-database.c b/src/gatt-database.c index 21c9e950c..c7b2223f8 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -1708,10 +1708,8 @@ static bool database_add_ccc(struct external_service *service, struct external_chrc *chrc) { if (!(chrc->props & BT_GATT_CHRC_PROP_NOTIFY) && - !(chrc->props & BT_GATT_CHRC_PROP_INDICATE)) { - DBG("No need to create CCC entry for characteristic"); + !(chrc->props & BT_GATT_CHRC_PROP_INDICATE)) return true; - } chrc->ccc = service_add_ccc(service->attrib, service->database, ccc_write_cb, chrc, NULL); @@ -1726,6 +1724,8 @@ static bool database_add_ccc(struct external_service *service, return false; } + DBG("Created CCC entry for characteristic"); + return true; } @@ -1745,10 +1745,8 @@ static bool database_add_cep(struct external_service *service, bt_uuid_t uuid; uint8_t value[2]; - if (!chrc->ext_props) { - DBG("No need to create CEP entry for characteristic"); + if (!chrc->ext_props) return true; - } bt_uuid16_create(&uuid, GATT_CHARAC_EXT_PROPER_UUID); cep = gatt_db_service_add_descriptor(service->attrib, &uuid, @@ -1768,6 +1766,8 @@ static bool database_add_cep(struct external_service *service, return false; } + DBG("Created CEP entry for characteristic"); + return true; } -- 2.47.3