From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 1 Jun 2016 07:51:32 +1200 Subject: [U-Boot] [PATCH 1/2] [RFC] lib: Implement support for tiny sprintf() In-Reply-To: <574DE7AC.40903@denx.de> References: <1464278425-4904-1-git-send-email-marex@denx.de> <20160530175532.GY7419@bill-the-cat> <574DE7AC.40903@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, On 1 June 2016 at 07:36, Marek Vasut wrote: > On 05/31/2016 08:19 PM, Simon Glass wrote: >> Hi, >> >> On 31 May 2016 at 05:55, Tom Rini wrote: >>> On Thu, May 26, 2016 at 06:00:24PM +0200, Marek Vasut wrote: >>> >>>> Tweak the tiny printf code to also provide similarly tiny sprintf() >>>> implementation. This is not comformant with POSIX for sure, but it >>>> keeps the size down while still behaving rather reasonably. >>>> >>>> Signed-off-by: Marek Vasut >>>> Cc: Simon Glass >>>> Cc: Tom Rini >>> >>> Reviewed-by: Tom Rini >> >> Also please see this one: >> >> http://patchwork.ozlabs.org/patch/622267/ >> >> It uses a function passed in. > > Oh, I knew I saw some s*printf() stuff from you. Works for me :) OK good. It works for me too but I'm sure it can be improved (code size, use of division, etc.), so see how you go. Regards, Simon