Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
653ae97b
Commit
653ae97b
authored
Jul 23, 2013
by
Pat Wood
Browse files
display partition numbers starting at "1" instead of "0"; corresponds to
command usage and partition numbering in linux nand driver
parent
606c0688
Changes
1
Hide whitespace changes
Inline
Side-by-side
nand-part.c
View file @
653ae97b
...
@@ -167,16 +167,13 @@ void printmbr(MBR *mbr)
...
@@ -167,16 +167,13 @@ void printmbr(MBR *mbr)
printmbrheader
(
mbr
);
printmbrheader
(
mbr
);
for
(
part_cnt
=
0
;
part_cnt
<
mbr
->
PartCount
&&
part_cnt
<
MAX_PART_COUNT
;
part_cnt
++
)
for
(
part_cnt
=
0
;
part_cnt
<
mbr
->
PartCount
&&
part_cnt
<
MAX_PART_COUNT
;
part_cnt
++
)
{
{
if
(
1
||
(
mbr
->
array
[
part_cnt
].
user_type
==
2
)
||
(
mbr
->
array
[
part_cnt
].
user_type
==
0
))
printf
(
"partition %2d: class = %12s, name = %12s, partition start = %8d, partition size = %8d user_type=%d
\n
"
,
{
part_cnt
+
1
,
printf
(
"partition %2d: class = %12s, name = %12s, partition start = %8d, partition size = %8d user_type=%d
\n
"
,
mbr
->
array
[
part_cnt
].
classname
,
part_cnt
,
mbr
->
array
[
part_cnt
].
name
,
mbr
->
array
[
part_cnt
].
classname
,
mbr
->
array
[
part_cnt
].
addrlo
,
mbr
->
array
[
part_cnt
].
name
,
mbr
->
array
[
part_cnt
].
lenlo
,
mbr
->
array
[
part_cnt
].
addrlo
,
mbr
->
array
[
part_cnt
].
user_type
);
mbr
->
array
[
part_cnt
].
lenlo
,
mbr
->
array
[
part_cnt
].
user_type
);
}
}
}
}
}
void
checkmbrs
(
int
fd
)
void
checkmbrs
(
int
fd
)
...
...
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