diff options
author | Doug Ledford <dledford@redhat.com> | 2010-01-11 15:38:12 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-01-19 10:45:28 +1300 |
commit | 6e48d593c163e8107f06d13bc6092466a5d58c94 (patch) | |
tree | 16c83046ed45a987e26381673fcadd1958af1981 | |
parent | 9ef5dbff4adc7979102e71efe8efd83d8e0dc775 (diff) | |
download | mdadm-6e48d593c163e8107f06d13bc6092466a5d58c94.tar.gz mdadm-6e48d593c163e8107f06d13bc6092466a5d58c94.tar.xz mdadm-6e48d593c163e8107f06d13bc6092466a5d58c94.zip |
Don't use %02d as a metadata format specifier for metadata numbers.
It confuses us when we read the output back later
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | Detail.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -174,7 +174,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) if (sra && sra->array.major_version < 0) printf("MD_METADATA=%s\n", sra->text_version); else - printf("MD_METADATA=%d.%02d\n", + printf("MD_METADATA=%d.%d\n", array.major_version, array.minor_version); } @@ -226,7 +226,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) if (sra && sra->array.major_version < 0) printf(" metadata=%s", sra->text_version); else - printf(" metadata=%d.%02d", + printf(" metadata=%d.%d", array.major_version, array.minor_version); } @@ -259,7 +259,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost) if (sra && sra->array.major_version < 0) printf(" Version : %s\n", sra->text_version); else - printf(" Version : %d.%02d\n", + printf(" Version : %d.%d\n", array.major_version, array.minor_version); } |