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
2994b5e3
Commit
2994b5e3
authored
Apr 08, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/tools: zero memory before each header readout in wrs_sfp_dump
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
2c90df5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
wrs_sfp_dump.c
userspace/tools/wrs_sfp_dump.c
+1
-0
No files found.
userspace/tools/wrs_sfp_dump.c
View file @
2994b5e3
...
...
@@ -78,6 +78,7 @@ int main(int argc, char **argv)
assert_init
(
shw_sfp_buses_init
());
for
(
i
=
dump_port
;
i
<=
nports
;
i
++
)
{
memset
(
&
shdr
,
0
,
sizeof
(
shdr
));
printf
(
"========= port %d =========
\n
"
,
i
-
1
);
err
=
shw_sfp_read_verify_header
(
i
-
1
,
&
shdr
);
if
(
err
==
-
2
)
{
...
...
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