From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 23 Nov 2015 17:44:17 -0500 Subject: [U-Boot] [U-Boot, 4/4, v2] lib/tiny-printf.c: Support numbers bigger than 0xffff and misc updates In-Reply-To: <1447683994-25930-4-git-send-email-sr@denx.de> References: <1447683994-25930-4-git-send-email-sr@denx.de> Message-ID: <20151123224417.GU9551@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 Mon, Nov 16, 2015 at 03:26:34PM +0100, Stefan Roese wrote: > With this patch now, the tiny printf() function also supports numbers > bigger than 0xffff. Additionally the code is simplified a bit and > some static variables are moved to function parameters. Also the > upper case hex variable output support is removed, as its not really > needed in this simple printf version. And removing it reduces the > complexity and the code size again a bit. > > Here the new numbers, again on the db-mv784mp-gp (Armada XP): > > Without this patch: > 56542 18536 1956 77034 12cea ./spl/u-boot-spl > > With this patch: > 56446 18536 1936 76918 12c76 ./spl/u-boot-spl > > Signed-off-by: Stefan Roese > Cc: Simon Glass > Cc: Hans de Goede > Cc: Tom Rini > Cc: Albert Aribaud Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: