summaryrefslogtreecommitdiff
path: root/lib/printf/vfprintf.c
AgeCommit message (Collapse)Author
2020-02-09*: Remove parenthesis on return for constantsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-06-03lib/printf: add extension supportDavid Lamparter
Inspired by the Linux kernel, this allows us to do %pI4 and similar things. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib/printf: fix some random warningsDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib/printf: integrateDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib/printf: rename & private __find_argumentsDavid Lamparter
These are internal to printf(), and symbols starting with __ are reserved for the compiler/libc. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib/printf: disable wchar_t supportDavid Lamparter
... we just don't use wchar_t in FRR, no point in having this enabled. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib/printf: add %Ld/%Lu for int64_t/uint64_tDavid Lamparter
[u]int64_t is the only type in the intX_t family that needs special-casing for printf since the calling convention may differ between 32-bit and 64-bit systems. Adding the L specifier allows us to eschew the gnarly-looking PRIu64. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib/printf: use system printf for floatsDavid Lamparter
We're not libc, we can just fall back to snprintf() to avoid all this low-level float mangling. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib/printf: cut down to sizeDavid Lamparter
remove various FreeBSD specific bits, as well as the entirety of locale support. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-06-03lib: import FreeBSD's printfDavid Lamparter
... from current SVN HEAD (not that it has been touched in the past 2 years ...) Signed-off-by: David Lamparter <equinox@diac24.net>