Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
97f3751f
Commit
97f3751f
authored
Mar 07, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/cmdline.c: ass '-d' for diagnostic level
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
222d30ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
cmdline.c
lib/cmdline.c
+6
-0
No files found.
lib/cmdline.c
View file @
97f3751f
...
...
@@ -21,6 +21,7 @@ static struct cmd_line_opt cmd_line_list[] = {
//{"-D", "display stats in .csv format"},
//{"-R", "record data about sync packets in a file"},
{
"-V"
,
"run in verbose mode"
},
{
"-d STRING"
,
"diagnostic level (see diag-macros.h)"
},
CMD_LINE_SEPARATOR
,
{
"-x"
,
"do not reset the clock if off by more than one second"
},
{
"-O NUMBER"
,
"do not reset the clock if offset is more than NUMBER nanoseconds"
},
...
...
@@ -104,6 +105,11 @@ int pp_parse_cmdline(struct pp_instance *ppi, int argc, char **argv)
case
'V'
:
pp_diag_verbosity
++
;
break
;
case
'd'
:
/* Use the general flags, per-instance TBD */
a
=
argv
[
++
i
];
pp_global_flags
=
pp_diag_parse
(
a
);
break
;
case
'x'
:
OPTS
(
ppi
)
->
no_rst_clk
=
1
;
break
;
...
...
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