RE: [PATCH mmc-utils] Fix parsing of Product Revision and Serial Number

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

 



> 
> According to MMC Standard (similar to SDCard Standard).
> 
> Signed-off-by: Stephane Fillod <f8cfe@xxxxxxx>
Acked-by: Avri Altman <avri.altman@xxxxxxx>

> ---
> 
> Rem: the field parsing order is fine in print_sd_cid().
> 
> diff --git a/lsmmc.c b/lsmmc.c
> index 9737b37..98c0c4d 100644
> --- a/lsmmc.c
> +++ b/lsmmc.c
> @@ -550,7 +582,7 @@ void print_mmc_cid(struct config *config, char *cid)
>  	unsigned int crc;
> 
>  	parse_bin(cid, "8u6r2u8u48a4u4u32u4u4u7u1r",
> -		&mid, &cbx, &oid, &pnm[0], &psn, &prv_major, &prv_minor,
> +		&mid, &cbx, &oid, &pnm[0], &prv_major, &prv_minor, &psn,
>  		&mdt_year, &mdt_month, &crc);
> 
>  	pnm[6] = '\0';




[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux