On Sat, Oct 22, 2011 at 00:51, Simon Glass <[email protected]> wrote:
> +int setenv_ulong(const char *varname, ulong value)
> +{
> + char *str = simple_itoa(value);
> +
> + return setenv(varname, str);
> +}
could be a one liner, but works either way
> +int setenv_addr(const char *varname, const void *addr)
> +{
> + char str[17];
char str[sizeof(addr) * 2 + 1];
> + sprintf(str, "%x", (uintptr_t)addr);
i wonder if we should use %p and drop the cast
-mike
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot