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
83bf4a86
Commit
83bf4a86
authored
Feb 17, 2015
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/tools: add dump_type_float to dump_shmem
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
bec3af64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wrs_dump_shmem.c
userspace/tools/wrs_dump_shmem.c
+4
-1
No files found.
userspace/tools/wrs_dump_shmem.c
View file @
83bf4a86
...
...
@@ -46,6 +46,7 @@ enum dump_type {
dump_type_unsigned_char
,
dump_type_unsigned_short
,
dump_type_double
,
dump_type_float
,
dump_type_pointer
,
/* and strange ones, from IEEE */
dump_type_UInteger64
,
...
...
@@ -132,13 +133,15 @@ void dump_one_field(void *addr, struct dump_info *info)
case
dump_type_double
:
printf
(
"%lf
\n
"
,
*
(
double
*
)
p
);
break
;
case
dump_type_float
:
printf
(
"%f
\n
"
,
*
(
float
*
)
p
);
break
;
case
dump_type_pointer
:
printf
(
"%p
\n
"
,
*
(
void
**
)
p
);
break
;
case
dump_type_Integer16
:
printf
(
"%i
\n
"
,
*
(
short
*
)
p
);
break
;
case
dump_type_TimeInternal
:
printf
(
"correct %i: %10i.%09i:%04i
\n
"
,
ti
->
correct
,
ti
->
seconds
,
ti
->
nanoseconds
,
ti
->
phase
);
...
...
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