diff mbox series

[5/5] fuse2fs: redirect all messages when FUSE2FS_LOGFILE is set

Message ID 174553064545.1160047.7348261379704899161.stgit@frogsfrogsfrogs
State New
Headers show
Series [1/5] fuse2fs: enable runtime debugging | expand

Commit Message

Darrick J. Wong April 24, 2025, 9:40 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

If the user sets FUSE2FS_LOGFILE, redirect all debug messages and error
reports to that file.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 misc/fuse2fs.c |    1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 9fd35d14e10556..fa48956396e9d1 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -3856,6 +3856,7 @@  int main(int argc, char *argv[])
 			goto out;
 		}
 		stderr = fp;
+		stdout = fp;
 	}
 
 	/* Will we allow users to allocate every last block? */