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:
Joachim Nilsson
2017-12-13 17:58:48 +01:00
parent 77cd0f0243
commit 9c423dfca4
+5 -5
View File
@@ -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;