Skip to content
Snippets Groups Projects
Commit 7dd001b5 authored by Amin Ben Romdhane's avatar Amin Ben Romdhane
Browse files

Update comments

parent 94412338
No related branches found
No related tags found
1 merge request!6Update the handling of process Instances
Pipeline #180922 passed
......@@ -173,6 +173,10 @@ static void broadcast_add_del_event(int diff)
struct blob_buf bb = {0};
char method_name[64] = {0};
// On the first run, add and delete events are managed by the instance refresh mechanism defined in bbfdm
if (g_process_ctx.process_num == 0)
return;
memset(&bb, 0, sizeof(struct blob_buf));
blob_buf_init(&bb, 0);
......@@ -322,7 +326,7 @@ static void run_refresh_process_list(void)
static void ubus_call_complete_cb(struct ubus_request *req, int ret)
{
BBF_ERR("ubus callback completed, line=%d", __LINE__);
BBF_DEBUG("'tr069' ubus callback completed");
run_refresh_process_list();
FREE(req);
}
......
......@@ -236,12 +236,12 @@ int sysmngr_ubus_invoke_async(struct ubus_context *ubus_ctx, const char *obj, co
uint32_t id;
if (ubus_ctx == NULL) {
BBF_ERR("Failed to connect with UBus, error: %d", errno);
BBF_ERR("Failed to connect with ubus, error: '%d'", errno);
return -1;
}
if (ubus_lookup_id(ubus_ctx, obj, &id)) {
BBF_ERR("Failed to lookup UBus object: %s", obj);
BBF_ERR("Failed to lookup ubus object: '%s'", obj);
return -1;
}
......@@ -252,7 +252,7 @@ int sysmngr_ubus_invoke_async(struct ubus_context *ubus_ctx, const char *obj, co
}
if (ubus_invoke_async(ubus_ctx, id, method, msg, req)) {
BBF_ERR("UBus async call failed for object: %s, method: %s", obj, method);
BBF_ERR("ubus async call failed for object: '%s', method: '%s'", obj, method);
FREE(req);
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment