]> sigrok.org Git - libsigrok.git/commitdiff
backend: Emit firmware search paths in a log message.
authorUwe Hermann <redacted>
Sun, 18 Mar 2018 17:16:26 +0000 (18:16 +0100)
committerUwe Hermann <redacted>
Sun, 18 Mar 2018 17:26:57 +0000 (18:26 +0100)
src/backend.c

index a88459ac50f7eaaf123210ddb2fe8303b65ad394..c8784f54fec3d9b925ff97c7de897ac8fff4beef 100644 (file)
@@ -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;