mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Disable toggling of log/debug in fsck() loop
Don't really see the point of this code anymore, was possibly an issue before we refactored the logging subsystem. Comment out for now, and remove later. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+5
-5
@@ -107,7 +107,7 @@ static int fismnt(char *dir)
|
||||
*/
|
||||
static int fsck(int pass)
|
||||
{
|
||||
int save;
|
||||
// int save;
|
||||
struct fstab *fs;
|
||||
|
||||
if (!setfsent()) {
|
||||
@@ -115,8 +115,8 @@ static int fsck(int pass)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ((save = log_is_debug()))
|
||||
log_debug();
|
||||
// if ((save = log_is_debug()))
|
||||
// log_debug();
|
||||
|
||||
while ((fs = getfsent())) {
|
||||
char cmd[80];
|
||||
@@ -142,8 +142,8 @@ static int fsck(int pass)
|
||||
run_interactive(cmd, "Checking filesystem %.13s", fs->fs_spec);
|
||||
}
|
||||
|
||||
if (save)
|
||||
log_debug();
|
||||
// if (save)
|
||||
// log_debug();
|
||||
endfsent();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user