From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Sat, 24 Sep 2011 09:56:01 +1000 Subject: [U-Boot] [PATCH 2/4] Add safe vsnprintf and snprintf library functions In-Reply-To: <1316799532-20761-3-git-send-email-sjg@chromium.org> References: <1316799532-20761-1-git-send-email-sjg@chromium.org> <1316799532-20761-3-git-send-email-sjg@chromium.org> Message-ID: <4E7D1C91.1030808@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On 24/09/11 03:38, Simon Glass wrote: > From: Sonny Rao > > From: Sonny Rao > > These functions are useful in U-Boot because they allow a graceful failure > rather than an unpredictable stack overflow when printf() buffers are > exceeded. > > Mostly copied from the Linux kernel. I copied vscnprintf and > scnprintf so we can change printf and vprintf to use the safe > implementation but still return the correct values. Have you checked for license compatibility? U-Boot is GPLv2+ and (most) of Linux is GPLv2 - You may not be legally permitted to do this Regards, Graeme