From 62fe2f4df048d439f73d7442bb318db7d3a4882a Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sun, 12 May 2024 08:11:15 +0200 Subject: [PATCH] misc/mke2fs.c: suppress 'Creating regular file' message with -q --- misc/mke2fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 58ade9df6..fc888c45f 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -2073,7 +2073,8 @@ static void PRS(int argc, char *argv[]) dev_size = 0; retval = 0; close(fd); - printf(_("Creating regular file %s\n"), device_name); + if (!quiet) + printf(_("Creating regular file %s\n"), device_name); } } if (retval && (retval != EXT2_ET_UNIMPLEMENTED)) {