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
83
Issues
83
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
2d4b75b1
Commit
2d4b75b1
authored
May 31, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/tools: use 1..18 port numbering in wrs_sfp_dump
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
2b6c0bc2
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 @
2d4b75b1
...
...
@@ -79,14 +79,14 @@ int main(int argc, char **argv)
for
(
i
=
dump_port
;
i
<=
nports
;
i
++
)
{
memset
(
&
shdr
,
0
,
sizeof
(
shdr
));
printf
(
"========= port %d =========
\n
"
,
i
-
1
);
printf
(
"========= port %d =========
\n
"
,
i
);
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
-
1
);
"to read SFP configuration header
\n
"
,
i
);
}
else
if
(
err
<
0
)
{
pr_error
(
"Failed to read SFP configuration header on "
"port %d
\n
"
,
i
-
1
);
"port %d
\n
"
,
i
);
}
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