[U-Boot] [PATCH] [OneNAND] Fix compiler warnings after loff_t change

Wolfgang Denk wd at denx.de
Mon Jul 27 00:09:21 CEST 2009


Dear Kyungmin Park,

In message <20090720004747.GA32595 at july> you wrote:
> Now 'env_addr' type is loff_t so use correct field type.
> 
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> ---
> diff --git a/common/env_onenand.c b/common/env_onenand.c
> index 476fdbc..dcf09de 100644
> --- a/common/env_onenand.c
> +++ b/common/env_onenand.c
> @@ -101,7 +101,7 @@ int saveenv(void)
>  	instr.addr = env_addr;
>  	instr.mtd = mtd;
>  	if (mtd->erase(mtd, &instr)) {
> -		printf("OneNAND: erase failed at 0x%08lx\n", env_addr);
> +		printf("OneNAND: erase failed at 0x%08llx\n", env_addr);
>  		return 1;
>  	}

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Perl already has an IDE.  It's called Unix.
                      -- Tom Christiansen in 375bd509 at cs.colorado.edu


More information about the U-Boot mailing list