[U-Boot] [PATCH 2/4] Add safe vsnprintf and snprintf library functions

Graeme Russ graeme.russ at gmail.com
Sat Sep 24 01:56:01 CEST 2011


Hi Simon,

On 24/09/11 03:38, Simon Glass wrote:
> From: Sonny Rao <sonnyrao at chromium.org>
> 
> From: Sonny Rao <sonnyrao at chromium.org>
> 
> 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


More information about the U-Boot mailing list