From: Guido Trentalancia Date: Sun, 21 Oct 2018 22:15:35 +0000 (+0200) Subject: Fix invalid frame limit error reporting X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=230e607b9b87fa5e2779731006380d2e4331773a;p=sigrok-cli.git Fix invalid frame limit error reporting 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 --- diff --git a/session.c b/session.c index 60f253f..152f979 100644 --- 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; }