Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
87
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
b6819798
Commit
b6819798
authored
10 years ago
by
Adam Wujek
Browse files
Options
Downloads
Patches
Plain Diff
userspace/tools: add UInteger64 and Integer64 to wrs_dump_shmem
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
cadc95e0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/tools/wrs_dump_shmem.c
+8
-0
8 additions, 0 deletions
userspace/tools/wrs_dump_shmem.c
with
8 additions
and
0 deletions
userspace/tools/wrs_dump_shmem.c
+
8
−
0
View file @
b6819798
...
...
@@ -52,6 +52,8 @@ enum dump_type {
dump_type_double
,
dump_type_pointer
,
/* and strange ones, from IEEE */
dump_type_UInteger64
,
dump_type_Integer64
,
dump_type_UInteger32
,
dump_type_Integer32
,
dump_type_UInteger16
,
...
...
@@ -101,6 +103,12 @@ void dump_one_field(void *addr, struct dump_info *info)
printf
(
"%02x%c"
,
((
unsigned
char
*
)
p
)[
i
],
i
==
info
->
size
-
1
?
'\n'
:
':'
);
break
;
case
dump_type_UInteger64
:
printf
(
"%lld
\n
"
,
*
(
unsigned
long
long
*
)
p
);
break
;
case
dump_type_Integer64
:
printf
(
"%lld
\n
"
,
*
(
long
long
*
)
p
);
break
;
case
dump_type_uint32_t
:
printf
(
"0x%08lx
\n
"
,
(
long
)
*
(
uint32_t
*
)
p
);
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment