From: Darrick J. Wong Date: Thu, 31 Jul 2025 00:51:12 +0000 (-0700) Subject: mke2fs: don't print warnings about dax to stderr X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53136b205486590aa035a02d7aaab63f12cfbc22;p=thirdparty%2Fe2fsprogs.git mke2fs: don't print warnings about dax to stderr mke2fs prints a warning to standard error if the target device supports fsdax but the fs block size doesn't match the page size. This isn't an error since we don't abort the format and the filesystem will work just fine if the user doesn't care about fsdax. Therefore, print the warning to stdout, not stderr. Cc: # v1.45.7 Fixes: f4979dd566acc4 ("mke2fs: Warn if fs block size is incompatible with DAX") Signed-off-by: "Darrick J. Wong" --- diff --git a/misc/mke2fs.c b/misc/mke2fs.c index c84ace7a..7f81a513 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -2503,10 +2503,9 @@ profile_error: } if (dev_param.dax && blocksize != sys_page_size) { - fprintf(stderr, - _("%s is capable of DAX but current block size " - "%u is different from system page size %u so " - "filesystem will not support DAX.\n"), + printf(_("%s is capable of DAX but current block size " + "%u is different from system page size %u so " + "filesystem will not support DAX.\n"), device_name, blocksize, sys_page_size); } }