]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remvoe blank line from '--examine --brief' output.
authorNeil Brown <neilb@suse.de>
Tue, 22 Nov 2005 03:38:44 +0000 (03:38 +0000)
committerNeil Brown <neilb@suse.de>
Tue, 22 Nov 2005 03:38:44 +0000 (03:38 +0000)
Signed-off-by: Neil Brown <neilb@suse.de>
ChangeLog
Examine.c

index 824400e9ee5a726ba6f536b999e8c63df7237c2b..c7612a67ab24828f3b86b563bd22b23ca40260e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Changes Prior to this release
     -   Support write-intent-bitmaps on raid10
     -   Support little-endian (Rather than hostendian) bitmaps.
     -   Return correct error code from 'mdadm -S'
+    -   Remove extra blank line from 'mdadm -Eb' output.
 
 Changes Prior to 2.1 release
     -   Fix assembling of raid10 array when devices are missing.
index 33fa1e5fccc7d70b50712cd94ffcc8b9bd8abc68..fa120a5332b1a07b0394bc7c36e440efa1ebca77 100644 (file)
--- a/Examine.c
+++ b/Examine.c
@@ -140,7 +140,8 @@ int Examine(mddev_dev_t devlist, int brief, int scan, int SparcAdjust, struct su
                        }
                        free(ap->super);
                        /* FIXME free ap */
-                       printf("\n");
+                       if (ap->spares || brief > 1)
+                               printf("\n");
                }
        }
        return rv;