]> sigrok.org Git - sigrok-cli.git/commitdiff
Fix invalid frame limit error reporting
authorGuido Trentalancia <redacted>
Sun, 21 Oct 2018 22:15:35 +0000 (00:15 +0200)
committerUwe Hermann <redacted>
Sun, 21 Oct 2018 22:27:47 +0000 (00:27 +0200)
This patch fixes a bug in the sigrok command-line interface error reporting
when an invalid frame limit is selected for the Hameg/Rohde&Schwarz HMO
mixed-signal oscilloscope driver (hameg-hmo).

Signed-off-by: Guido Trentalancia <redacted>
session.c

index 60f253f766d7f4a01e101608452c934abeb2528f..152f9790b818bcffc94a1e81b1796852abbe8ce4 100644 (file)
--- a/session.c
+++ b/session.c
@@ -675,7 +675,7 @@ void run_session(void)
 
        if (opt_frames) {
                if ((sr_parse_sizestring(opt_frames, &limit_frames) != SR_OK)) {
-                       g_critical("Invalid sample limit '%s'.", opt_samples);
+                       g_critical("Invalid frame limit '%s'.", opt_frames);
                        sr_session_destroy(session);
                        return;
                }