Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
adc-lib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
adc-lib
Commits
dfc48fbe
Commit
dfc48fbe
authored
Mar 18, 2022
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: fix help message according to device-id accepted format
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
fad25703
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
adc-acq.c
tools/adc-acq.c
+2
-1
No files found.
tools/adc-acq.c
View file @
dfc48fbe
...
...
@@ -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
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment