Updated logs

This commit is contained in:
Vivek Kumar Dutta 2025-03-16 11:45:38 +05:30
parent 1fa64da324
commit 53fdfcfa28
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
6 changed files with 9 additions and 11 deletions

View file

@ -207,7 +207,7 @@ int main(int argc, char **argv)
if (optarg) {
g_log_level = (int)strtod(optarg, NULL);
if (g_log_level < 0 || g_log_level > 7)
g_log_level = 3;
g_log_level = 7;
}
break;
case 'h':
@ -251,7 +251,7 @@ int main(int argc, char **argv)
uloop_run();
end:
BBFDM_ERR("Free context");
BBFDM_DEBUG("BBFDMD exits");
unregister_services();
uloop_done();
ubus_shutdown(&ubus_ctx);

View file

@ -80,7 +80,7 @@ static int load_service_from_file(struct ubus_context *ubus_ctx, const char *fil
uint32_t ubus_id;
if (ubus_lookup_id(ubus_ctx, service_name, &ubus_id)) {
BBFDM_ERR("Failed to lookup UBUS object: %s", service_name);
BBFDM_WARNING("Failed to lookup UBUS object: %s", service_name);
}
json_object *unified_daemon_jobj = NULL;

View file

@ -42,7 +42,7 @@ int main(int argc, char **argv)
if (optarg) {
log_level = (int)strtod(optarg, NULL);
if (log_level < 0 || log_level > 7)
log_level = 3;
log_level = 7;
}
break;
case 'h':

View file

@ -95,7 +95,7 @@ static int __dm_ubus_call_internal(const char *obj, const char *method, int time
}
if (ubus_lookup_id(ubus_ctx, obj, &id)) {
BBF_ERR("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
BBF_WARNING("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
return -1;
}
@ -331,7 +331,7 @@ static int dmubus_call_blob_internal(const char *obj, const char *method, json_o
}
if (ubus_lookup_id(ubus_ctx, obj, &id)) {
BBF_ERR("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
BBF_WARNING("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
blob_buf_free(&blob);
return rc;
}
@ -381,7 +381,7 @@ static int dmubus_call_blob_msg_internal(const char *obj, const char *method, st
}
if (ubus_lookup_id(ubus_ctx, obj, &id)) {
BBF_ERR("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
BBF_WARNING("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
return -1;
}

View file

@ -69,7 +69,6 @@ int load_dotso_plugins(DMOBJ *entryobj, const char *plugin_path)
#endif
if (!handle) {
char *err_msg = dlerror();
TRACE_FILE("Failed to add DotSo plugin '%s', [%s]\n", plugin_path, err_msg);
BBF_ERR("Failed to add DotSo plugin '%s', [%s]\n", plugin_path, err_msg);
return 0;
}
@ -88,7 +87,6 @@ int load_dotso_plugins(DMOBJ *entryobj, const char *plugin_path)
DMOBJ *dm_entryobj = find_entry_obj(entryobj, dynamic_obj[i].path);
if (!dm_entryobj) {
TRACE_FILE("Failed to add DotSo plugin '%s' to main tree with parent DM index '%d' => '%s'", plugin_path, i, dynamic_obj[i].path);
BBF_ERR("Failed to add DotSo plugin '%s' to main tree with parent DM index '%d' => '%s'", plugin_path, i, dynamic_obj[i].path);
continue;
}

View file

@ -42,7 +42,7 @@ int bbfdm_ubus_invoke_sync(struct bbfdm_ctx *bbfdm_ctx, const char *obj, const c
}
if (ubus_lookup_id(bbfdm_ctx->ubus_ctx, obj, &id)) {
BBFDM_ERR("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
BBFDM_WARNING("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
return -1;
}
@ -67,7 +67,7 @@ int bbfdm_ubus_invoke_async(struct ubus_context *ubus_ctx, const char *obj, cons
}
if (ubus_lookup_id(ubus_ctx, obj, &id)) {
BBFDM_ERR("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
BBFDM_WARNING("Failed to lookup UBUS object ID for '%s' using method '%s'", obj, method);
return -1;
}