]> sigrok.org Git - sigrok-cli.git/blobdiff - device.c
Clean up session file loading.
[sigrok-cli.git] / device.c
index b8709dc2bf0a7a4cca8eb559fdb21f34cc7ecf70..55d306b323699c3ba8a5948a3b1a679eb7b54101 100644 (file)
--- a/device.c
+++ b/device.c
@@ -23,8 +23,6 @@
 #include <string.h>
 
 extern struct sr_context *sr_ctx;
-extern gchar *opt_drv;
-extern gchar *opt_channel_group;
 
 /* Convert driver options hash to GSList of struct sr_config. */
 static GSList *hash_to_hwopt(GHashTable *hash)
@@ -135,6 +133,7 @@ struct sr_channel_group *select_channel_group(struct sr_dev_inst *sdi)
                        return cg;
                }
        }
+       g_critical("Invalid channel group '%s'", opt_channel_group);
 
        return NULL;
 }