Commit dfc48fbe authored by Federico Vaga's avatar Federico Vaga

tools: fix help message according to device-id accepted format

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent fad25703
......@@ -40,7 +40,7 @@ static unsigned arg_plot_selected = 0;
static char git_version[] = "version: " GIT_VERSION;
static const char *help_msg =
"adc-acq -D <device-name>@0x<device-id> [OPTIONS]\n\n";
"adc-acq -D <device-name>@<device-id> [OPTIONS]\n\n";
static const char *help_msg_opt =
" --device|-D <device-name>@<device-id>: unique device identifier (e.g.: \"fmc-adc@0x0400\")\n"
" --acquisition|-a <parameters> configure the acquisition\n"
......@@ -1146,6 +1146,7 @@ static int fald_acq_parse_args_basic(int argc, char *argv[])
_argv, optarg);
exit(1);
}
/* +1 to skip '@' */
devid = strtoul(strdevid + 1, &eptr, 0);
if (*eptr != 0) {
fprintf(stderr, "%s: invalid device-id \"%s\" (<type>@<device-id>)\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment