Re: [[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 Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 11 Jan 2010 15:38:12 -0500
Doug Ledford <dledford@xxxxxxxxxx> wrote:

> Signed-off-by: Doug Ledford <dledford@xxxxxxxxxx>

Applied, thanks.

NeilBrown


> ---
>  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);
>  		}
>  

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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