Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
839e4302
Commit
839e4302
authored
Jan 06, 2004
by
Roman Zippel
Committed by
Linus Torvalds
Jan 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] generate an error if writing of kernel config failed
generate an error if writing of kernel config failed
parent
f6fb237b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
scripts/kconfig/conf.c
scripts/kconfig/conf.c
+4
-1
scripts/kconfig/mconf.c
scripts/kconfig/mconf.c
+11
-3
No files found.
scripts/kconfig/conf.c
View file @
839e4302
...
@@ -575,6 +575,9 @@ int main(int ac, char **av)
...
@@ -575,6 +575,9 @@ int main(int ac, char **av)
conf_cnt
=
0
;
conf_cnt
=
0
;
check_conf
(
&
rootmenu
);
check_conf
(
&
rootmenu
);
}
while
(
conf_cnt
);
}
while
(
conf_cnt
);
conf_write
(
NULL
);
if
(
conf_write
(
NULL
))
{
fprintf
(
stderr
,
"
\n
*** Error during writing of the kernel configuration.
\n\n
"
);
return
1
;
}
return
0
;
return
0
;
}
}
scripts/kconfig/mconf.c
View file @
839e4302
...
@@ -785,15 +785,23 @@ int main(int ac, char **av)
...
@@ -785,15 +785,23 @@ int main(int ac, char **av)
}
while
(
stat
<
0
);
}
while
(
stat
<
0
);
if
(
stat
==
0
)
{
if
(
stat
==
0
)
{
conf_write
(
NULL
);
if
(
conf_write
(
NULL
))
{
fprintf
(
stderr
,
"
\n\n
"
"Error during writing of the kernel configuration.
\n
"
"Your kernel configuration changes were NOT saved."
"
\n\n
"
);
return
1
;
}
printf
(
"
\n\n
"
printf
(
"
\n\n
"
"*** End of Linux kernel configuration.
\n
"
"*** End of Linux kernel configuration.
\n
"
"*** Execute 'make' to build the kernel or try 'make help'."
"*** Execute 'make' to build the kernel or try 'make help'."
"
\n\n
"
);
"
\n\n
"
);
}
else
}
else
{
printf
(
"
\n\n
"
fprintf
(
stderr
,
"
\n\n
"
"Your kernel configuration changes were NOT saved."
"Your kernel configuration changes were NOT saved."
"
\n\n
"
);
"
\n\n
"
);
return
1
;
}
return
0
;
return
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