Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SDB - Self-describing Bus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
SDB - Self-describing Bus
Commits
3c5fc657
Commit
3c5fc657
authored
Oct 08, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdbfs/sdb-read: prevent compiler warnings
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
af5c077e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
sdb-read.c
sdbfs/userspace/sdb-read.c
+5
-4
No files found.
sdbfs/userspace/sdb-read.c
View file @
3c5fc657
...
...
@@ -91,8 +91,9 @@ static void list_device(struct sdb_device *d, int depth, int base)
/* hack: show directory level looking at the internals */
printf
(
"%016llx:%08x @ %08llx-%08llx "
,
ntohll
(
p
->
vendor_id
),
ntohl
(
p
->
device_id
),
base
+
ntohll
(
c
->
addr_first
),
base
+
ntohll
(
c
->
addr_last
));
(
long
long
)
ntohll
(
p
->
vendor_id
),
ntohl
(
p
->
device_id
),
(
long
long
)
base
+
ntohll
(
c
->
addr_first
),
(
long
long
)
base
+
ntohll
(
c
->
addr_last
));
for
(
i
=
0
;
i
<
depth
;
i
++
)
printf
(
" "
);
printf
(
"%.19s
\n
"
,
p
->
name
);
...
...
@@ -132,8 +133,8 @@ static void do_cat_id(struct sdbfs *fs, uint64_t vendor, uint32_t dev)
i
=
sdbfs_open_id
(
fs
,
htonll
(
vendor
),
htonl
(
dev
));
if
(
i
<
0
)
{
fprintf
(
stderr
,
"%s: %016llx-%08x: %s
\n
"
,
prgname
,
vendor
,
dev
,
strerror
(
-
i
));
fprintf
(
stderr
,
"%s: %016llx-%08x: %s
\n
"
,
prgname
,
(
long
long
)
vendor
,
dev
,
strerror
(
-
i
));
exit
(
1
);
}
while
(
(
i
=
sdbfs_fread
(
fs
,
-
1
,
buf
,
sizeof
(
buf
)))
>
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