[PATCH 4/4] mdadm: Print version to stdout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux