Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
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
Software for White Rabbit PTP Core
Commits
43b42c35
Commit
43b42c35
authored
Jan 08, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/wrpc-dump: if needed, swap bytes of ClockIdentity.portNumber
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
62b2d62f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wrpc-dump.c
tools/wrpc-dump.c
+2
-1
No files found.
tools/wrpc-dump.c
View file @
43b42c35
...
...
@@ -283,7 +283,8 @@ void dump_one_field(void *addr, struct dump_info *info, char *info_prefix)
for
(
i
=
0
;
i
<
sizeof
(
ClockIdentity
);
i
++
)
printf
(
"%02x%c"
,
((
unsigned
char
*
)
p
)[
i
],
i
==
sizeof
(
ClockIdentity
)
-
1
?
'.'
:
':'
);
printf
(
"%04x (%i)
\n
"
,
pi
->
portNumber
,
pi
->
portNumber
);
printf
(
"%04x (%i)
\n
"
,
wrpc_get_16
(
&
pi
->
portNumber
),
wrpc_get_16
(
&
pi
->
portNumber
));
break
;
case
dump_type_ClockQuality
:
...
...
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