From: Uwe Hermann Date: Sun, 18 Mar 2018 17:16:26 +0000 (+0100) Subject: backend: Emit firmware search paths in a log message. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=410883baf62e94207a4e5545b145427ff6e76c98;p=libsigrok.git backend: Emit firmware search paths in a log message. --- diff --git a/src/backend.c b/src/backend.c index a88459ac..c8784f54 100644 --- a/src/backend.c +++ b/src/backend.c @@ -255,6 +255,17 @@ static void print_versions(void) g_free(str); } +static void print_resourcepaths(void) +{ + GSList *l, *l_orig; + + sr_dbg("Firmware search paths:"); + l_orig = sr_resourcepaths_get(SR_RESOURCE_FIRMWARE); + for (l = l_orig; l; l = l->next) + sr_dbg(" - %s", (const char *)l->data); + g_slist_free_full(l_orig, g_free); +} + /** * Sanity-check all libsigrok drivers. * @@ -529,6 +540,8 @@ SR_API int sr_init(struct sr_context **ctx) print_versions(); + print_resourcepaths(); + if (!ctx) { sr_err("%s(): libsigrok context was NULL.", __func__); return SR_ERR;