From d9fac04901c8884156c9780df158346854c8fca4 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 15 Feb 2016 13:36:33 +0200 Subject: [PATCH] core/device: Fix log when loading characteristic fails It should log that loading fails not saving. --- src/device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device.c b/src/device.c index 1f7c89565..235145ab5 100644 --- a/src/device.c +++ b/src/device.c @@ -3012,7 +3012,7 @@ static int load_chrc(char *handle, char *value, &uuid, 0, properties, NULL, NULL, NULL); if (!att || gatt_db_attribute_get_handle(att) != value_handle) { - warn("saving characteristic to db failed"); + warn("loading characteristic to db failed"); return -EIO; } @@ -3039,13 +3039,13 @@ static int load_incl(struct gatt_db *db, char *handle, char *value, att = gatt_db_get_attribute(db, start); if (!att) { - warn("saving included service to db failed - no such service"); + warn("loading included service to db failed - no such service"); return -EIO; } att = gatt_db_service_add_included(service, att); if (!att) { - warn("saving included service to db failed"); + warn("loading included service to db failed"); return -EIO; } @@ -3082,7 +3082,7 @@ static int load_service(struct gatt_db *db, char *handle, char *value) att = gatt_db_insert_service(db, start, &uuid, primary, end - start + 1); if (!att) { - DBG("ERROR saving service to db!"); + error("Unable load service into db."); return -EIO; } -- 2.47.3