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
31
Issues
31
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
Software for White Rabbit PTP Core
Commits
e0f9d19f
Commit
e0f9d19f
authored
Nov 24, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/wrpc-dump: support /sys/*/pci/*resource0 files
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
137cf0af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
wrpc-dump.c
tools/wrpc-dump.c
+3
-1
No files found.
tools/wrpc-dump.c
View file @
e0f9d19f
...
@@ -501,10 +501,12 @@ int main(int argc, char **argv)
...
@@ -501,10 +501,12 @@ int main(int argc, char **argv)
exit
(
1
);
exit
(
1
);
}
}
if
(
!
S_ISREG
(
st
.
st_mode
))
{
/* FIXME: support memory */
if
(
!
S_ISREG
(
st
.
st_mode
))
{
/* FIXME: support memory */
fprintf
(
stderr
,
"%s: %s not a regular f
u
le
\n
"
,
fprintf
(
stderr
,
"%s: %s not a regular f
i
le
\n
"
,
argv
[
0
],
argv
[
1
]);
argv
[
0
],
argv
[
1
]);
exit
(
1
);
exit
(
1
);
}
}
if
(
st
.
st_size
>
128
*
1024
)
/* support /sys/..../resource0 */
st
.
st_size
=
128
*
1024
;
if
(
sscanf
(
argv
[
2
],
"%lx%c"
,
&
offset
,
&
c
)
!=
1
)
{
if
(
sscanf
(
argv
[
2
],
"%lx%c"
,
&
offset
,
&
c
)
!=
1
)
{
fprintf
(
stderr
,
"%s:
\"
%s
\"
not a hex offset
\n
"
,
argv
[
0
],
fprintf
(
stderr
,
"%s:
\"
%s
\"
not a hex offset
\n
"
,
argv
[
0
],
...
...
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