Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Florian Mayer
u-boot
Commits
574b3195
Commit
574b3195
authored
16 years ago
by
Detlev Zundel
Committed by
Wolfgang Denk
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix disk type output in disk/part.c
Signed-off-by:
Detlev Zundel
<
dzu@denx.de
>
parent
045b4d2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
disk/part.c
+14
-18
14 additions, 18 deletions
disk/part.c
with
14 additions
and
18 deletions
disk/part.c
+
14
−
18
View file @
574b3195
...
...
@@ -109,29 +109,25 @@ void dev_print (block_dev_desc_t *dev_desc)
lbaint_t
lba512
;
#endif
if
(
dev_desc
->
type
==
DEV_TYPE_UNKNOWN
)
{
puts
(
"not available
\n
"
);
return
;
}
if
(
dev_desc
->
if_type
==
IF_TYPE_SCSI
)
{
printf
(
"(%d:%d) "
,
dev_desc
->
target
,
dev_desc
->
lun
);
}
if
(
dev_desc
->
if_type
==
IF_TYPE_IDE
)
{
printf
(
"Model: %s Firm: %s Ser#: %s
\n
"
,
switch
(
dev_desc
->
type
)
{
case
IF_TYPE_SCSI
:
printf
(
"(%d:%d) Vendor: %s Prod.: %s Rev: %s
\n
"
,
dev_desc
->
target
,
dev_desc
->
lun
,
dev_desc
->
vendor
,
dev_desc
->
revision
,
dev_desc
->
product
);
}
if
(
dev_desc
->
if_type
==
IF_TYPE_SATA
)
{
dev_desc
->
product
,
dev_desc
->
revision
);
break
;
case
IF_TYPE_IDE
:
case
IF_TYPE_SATA
:
printf
(
"Model: %s Firm: %s Ser#: %s
\n
"
,
dev_desc
->
vendor
,
dev_desc
->
revision
,
dev_desc
->
product
);
}
else
{
printf
(
"Vendor: %s Prod.: %s Rev: %s
\n
"
,
dev_desc
->
vendor
,
dev_desc
->
product
,
dev_desc
->
revision
)
;
break
;
case
DEV_TYPE_UNKNOWN
:
default:
puts
(
"not available
\n
"
);
return
;
}
puts
(
" Type: "
);
if
(
dev_desc
->
removable
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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