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
e2c0a4a9
Commit
e2c0a4a9
authored
May 12, 2023
by
Fabian Mauchle
Committed by
Adam Wujek
May 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/libwr: correctly print transceiver codes
parent
11e08a66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
i2c_sfp.c
userspace/libwr/i2c_sfp.c
+4
-1
No files found.
userspace/libwr/i2c_sfp.c
View file @
e2c0a4a9
...
...
@@ -309,7 +309,10 @@ void shw_sfp_print_header(struct shw_sfp_header *head)
printf
(
"Identifier: %02X
\n
"
,
head
->
id
);
printf
(
"Extended Identifier: %02X
\n
"
,
head
->
ext_id
);
printf
(
"Connector: %02X
\n
"
,
head
->
connector
);
printf
(
"Transceiver: %016llX
\n
"
,
((
uint64_t
*
)
head
->
transciever
)[
0
]);
printf
(
"Transceiver: "
);
for
(
i
=
0
;
i
<
sizeof
(
head
->
transciever
);
i
++
)
printf
(
"%02X"
,
head
->
transciever
[
i
]);
printf
(
"
\n
"
);
printf
(
"Encoding: %02x
\n
"
,
head
->
encoding
);
printf
(
"Nominal Bit Rate: %d Megabits/s
\n
"
,
head
->
br_nom
*
100
);
printf
(
"Length (9m): %dkm
\n
"
,
head
->
length1
);
...
...
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