From mboxrd@z Thu Jan 1 00:00:00 1970 From: Doug Ledford Subject: [[Patch mdadm] 3/5] We don't like %02d as a metadata format specifier, it confuses us when we read the output back later Date: Mon, 11 Jan 2010 15:38:12 -0500 Message-ID: <1263242294-5353-4-git-send-email-dledford@redhat.com> References: <1263242294-5353-1-git-send-email-dledford@redhat.com> Return-path: In-Reply-To: <1263242294-5353-1-git-send-email-dledford@redhat.com> Sender: linux-raid-owner@vger.kernel.org To: linux-raid@vger.kernel.org Cc: Doug Ledford List-Id: linux-raid.ids Signed-off-by: Doug Ledford --- Detail.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Detail.c b/Detail.c index 0e47a05..ba07c83 100644 --- a/Detail.c +++ b/Detail.c @@ -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); } -- 1.6.5.2