diff options
author | Sonny Rao <sonnyrao@chromium.org> | 2011-11-02 09:52:08 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-17 22:33:20 (GMT) |
commit | 046a37bd53f479915bcd5041e0834dad576371a2 (patch) | |
tree | b869392a16be5b8a3313e4c20e5b10a871329a3d /Makefile | |
parent | 9785c905cff109e48415904e518ca559918e7fd0 (diff) | |
download | u-boot-fsl-qoriq-046a37bd53f479915bcd5041e0834dad576371a2.tar.xz |
Add safe vsnprintf and snprintf library functions
From: Sonny Rao <sonnyrao@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.
(Simon Glass <sjg@chromium.org> modified this commit a little)
Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions