The version information is not error information. Print it to stdout. Signed-off-by: Xiao Ni <xni@xxxxxxxxxx> --- mdadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdadm.c b/mdadm.c index 076b45e030b3..0b8854baf1aa 100644 --- a/mdadm.c +++ b/mdadm.c @@ -128,7 +128,7 @@ int main(int argc, char *argv[]) continue; case 'V': - fputs(Version, stderr); + fputs(Version, stdout); exit(0); case 'v': c.verbose++; -- 2.32.0 (Apple Git-132)