Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
EtherBone Core
Commits
8f32e413
There was an error fetching the commit references. Please try again later.
Commit
8f32e413
authored
13 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Improved formatting in compact mode
parent
cc8ec92e
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/tools/eb-ls.c
+6
-4
6 additions, 4 deletions
api/tools/eb-ls.c
with
6 additions
and
4 deletions
api/tools/eb-ls.c
+
6
−
4
View file @
8f32e413
...
@@ -83,7 +83,7 @@ static void list_devices(eb_user_data_t user, eb_device_t dev, sdwb_t sdwb, eb_s
...
@@ -83,7 +83,7 @@ static void list_devices(eb_user_data_t user, eb_device_t dev, sdwb_t sdwb, eb_s
br
.
parent
->
stop
=
1
;
br
.
parent
->
stop
=
1
;
if
(
status
!=
EB_OK
)
{
if
(
status
!=
EB_OK
)
{
fprintf
(
stderr
,
"
F
ailed to retrieve SDWB: %s
\n
"
,
eb_status
(
status
));
fprintf
(
stderr
,
"
%s: f
ailed to retrieve SDWB: %s
\n
"
,
program
,
eb_status
(
status
));
exit
(
1
);
exit
(
1
);
}
}
...
@@ -128,7 +128,6 @@ static void list_devices(eb_user_data_t user, eb_device_t dev, sdwb_t sdwb, eb_s
...
@@ -128,7 +128,6 @@ static void list_devices(eb_user_data_t user, eb_device_t dev, sdwb_t sdwb, eb_s
child
=
(
des
->
wbd_flags
&
WBD_FLAG_HAS_CHILD
)
!=
0
;
child
=
(
des
->
wbd_flags
&
WBD_FLAG_HAS_CHILD
)
!=
0
;
bad
=
0
;
bad
=
0
;
fprintf
(
stdout
,
"Device "
);
wide
=
print_id
(
&
br
);
wide
=
print_id
(
&
br
);
if
((
des
->
wbd_flags
&
WBD_FLAG_PRESENT
)
==
0
)
{
if
((
des
->
wbd_flags
&
WBD_FLAG_PRESENT
)
==
0
)
{
...
@@ -176,9 +175,9 @@ static void list_devices(eb_user_data_t user, eb_device_t dev, sdwb_t sdwb, eb_s
...
@@ -176,9 +175,9 @@ static void list_devices(eb_user_data_t user, eb_device_t dev, sdwb_t sdwb, eb_s
fprintf
(
stdout
,
" description: "
);
fwrite
(
des
->
description
,
1
,
16
,
stdout
);
fprintf
(
stdout
,
"
\n
"
);
fprintf
(
stdout
,
" description: "
);
fwrite
(
des
->
description
,
1
,
16
,
stdout
);
fprintf
(
stdout
,
"
\n
"
);
fprintf
(
stdout
,
"
\n
"
);
fprintf
(
stdout
,
"
\n
"
);
}
else
{
}
else
{
fprintf
(
stdout
,
":"
);
fwrite
(
" "
,
1
,
16
-
wide
,
stdout
);
/* align the text */
fwrite
(
" "
,
1
,
16
-
wide
,
stdout
);
/* align the text */
fprintf
(
stdout
,
"%08x:%08x "
,
des
->
dev_vendor
,
des
->
dev_device
);
fprintf
(
stdout
,
"%08x:%08x %16"
EB_ADDR_FMT
" "
,
des
->
dev_vendor
,
des
->
dev_device
,
des
->
wbd_begin
);
fwrite
(
des
->
description
,
1
,
16
,
stdout
);
fwrite
(
des
->
description
,
1
,
16
,
stdout
);
fprintf
(
stdout
,
"
\n
"
);
fprintf
(
stdout
,
"
\n
"
);
}
}
...
@@ -302,6 +301,9 @@ int main(int argc, char** argv) {
...
@@ -302,6 +301,9 @@ int main(int argc, char** argv) {
return
1
;
return
1
;
}
}
if
(
!
verbose
)
fprintf
(
stdout
,
"BusPath VendorID:Product BaseAddress(Hex) Description
\n
"
);
while
(
!
br
.
stop
)
{
while
(
!
br
.
stop
)
{
eb_socket_block
(
socket
,
-
1
);
eb_socket_block
(
socket
,
-
1
);
eb_socket_poll
(
socket
);
eb_socket_poll
(
socket
);
...
...
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