[U-Boot-Users] Patch: flash_write return value in saveenv
Wolfgang Denk
wd at denx.de
Sat Mar 13 23:51:50 CET 2004
Dear Daniel,
in message <77FE4A1FA59FF947845A42194AD6676277310D at uswaumsx07medge.med.ge.com> you wrote:
> In the CFG_ENV_ADDR_REDUND version of the function saveenv in
> common/env_flash.c...
>
> If there is a failure with the flash_write function it
> will always display an error message for a Flash Timeout
> regardless of what the actual error is. The variable "rc" is
> set to 1 at declaration and flash_perror(rc) is called if there
> is an error, but the actual return value of flash_write is not
> stored in rc, therefore the error code displayed will always be 1.
>
> The below patch corrects this...
Thanks, checked in.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
... The things love can drive a man to -- the ecstasies, the mise-
ries, the broken rules, the desperate chances, the glorious failures
and the glorious victories.
-- McCoy, "Requiem for Methuselah", stardate 5843.7
More information about the U-Boot
mailing list