From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 18 Feb 2013 17:08:21 -0500 Subject: [U-Boot] [PATCH 12/20] common: Use new numeric setenv functions In-Reply-To: <1356548233-5570-13-git-send-email-sjg@chromium.org> References: <1356548233-5570-1-git-send-email-sjg@chromium.org> <1356548233-5570-13-git-send-email-sjg@chromium.org> Message-ID: <20130218220821.GG3050@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Dec 26, 2012 at 10:57:05AM -0800, Simon Glass wrote: > Use setenv_ulong(), setenv_hex() and setenv_addr() in common/ > > Signed-off-by: Simon Glass [snip] > diff --git a/common/cmd_fdos.c b/common/cmd_fdos.c > index fbee861..5a35cc1 100644 > --- a/common/cmd_fdos.c > +++ b/common/cmd_fdos.c [snip] > @@ -91,8 +90,7 @@ int do_fdosboot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) > } > flush_cache (load_addr, size); > > - sprintf(buf, "%x", size); > - setenv("filesize", buf); > + setenv_hex("filesize", size); Tab and space mixing in the function. I'll fix if git am --whitespace=fix doesn't spot and fix. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: