]> sigrok.org Git - sigrok-cli.git/commitdiff
cli: Show sr/srd versions determined at run-time.
authorUwe Hermann <redacted>
Mon, 16 Apr 2012 19:49:05 +0000 (21:49 +0200)
committerUwe Hermann <redacted>
Mon, 16 Apr 2012 19:49:05 +0000 (21:49 +0200)
sigrok-cli.c

index 5539041b6cdee63a481aa8f2fbbdef16e2dd832e..64406009e8f43da5ce75236e1959b415c3f84efa 100644 (file)
@@ -94,6 +94,11 @@ static void show_version(void)
 
        printf("sigrok-cli %s\n\n", VERSION);
 
+       printf("Using libsigrok %s (lib version %s).\n",
+              sr_package_version_string_get(), sr_lib_version_string_get());
+       printf("Using libsigrokdecode %s (lib version %s).\n\n",
+              srd_package_version_string_get(), srd_lib_version_string_get());
+
        printf("Supported hardware drivers:\n");
        drivers = sr_driver_list();
        for (i = 0; drivers[i]; i++) {