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
Mmc Utils
Commits
928ff072
Commit
928ff072
authored
Nov 18, 2015
by
Marcus Folkesson
Committed by
Chris Ball
Nov 18, 2015
Browse files
mmc_utils: gp create: only allow partition [1-4] to be selected
Signed-off-by:
Marcus Folkesson
<
marcus.folkesson@gmail.com
>
parent
d0b46442
Changes
1
Show whitespace changes
Inline
Side-by-side
mmc_cmds.c
View file @
928ff072
...
...
@@ -684,8 +684,8 @@ int do_create_gp_partition(int nargs, char **argv)
ext_attr
=
strtol
(
argv
[
5
],
NULL
,
10
);
device
=
argv
[
6
];
if
(
partition
<
0
||
partition
>
4
)
{
printf
(
"Invalid gp parition number valid range [1-4]
\n
"
);
if
(
partition
<
1
||
partition
>
4
)
{
printf
(
"Invalid gp par
t
ition number
;
valid range [1-4]
.
\n
"
);
exit
(
1
);
}
...
...
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