Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
2c90df5b
Commit
2c90df5b
authored
Apr 05, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/tools: use 0..17 port numbering in wrs_sfp_dump
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
b00e15dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrs_sfp_dump.c
userspace/tools/wrs_sfp_dump.c
+3
-3
No files found.
userspace/tools/wrs_sfp_dump.c
View file @
2c90df5b
...
...
@@ -78,14 +78,14 @@ int main(int argc, char **argv)
assert_init
(
shw_sfp_buses_init
());
for
(
i
=
dump_port
;
i
<=
nports
;
i
++
)
{
printf
(
"========= port %d =========
\n
"
,
i
);
printf
(
"========= port %d =========
\n
"
,
i
-
1
);
err
=
shw_sfp_read_verify_header
(
i
-
1
,
&
shdr
);
if
(
err
==
-
2
)
{
pr_error
(
"SFP module not inserted in port %d. Failed "
"to read SFP configuration header
\n
"
,
i
);
"to read SFP configuration header
\n
"
,
i
-
1
);
}
else
if
(
err
<
0
)
{
pr_error
(
"Failed to read SFP configuration header on "
"port %d
\n
"
,
i
);
"port %d
\n
"
,
i
-
1
);
}
else
{
shw_sfp_print_header
(
&
shdr
);
if
(
dump_hex_header
)
{
...
...
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