aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/printf_hook
Commit message (Collapse)AuthorAgeFilesLines
* printf-hook-builtin: Support Windows console colors using TTY escape codesMartin Willi2014-06-041-0/+124
|
* printf-hook-glibc: printf.h on FreeBSD 10 does not include stdargs.hTobias Brunner2014-02-131-1/+1
|
* printf-hook-builtin: Correctly calculate written bytes in print_in_hook()Martin Willi2014-01-151-3/+7
| | | | | | | | | | The hook data counts remaining buffer bytes, not used ones. Counting them correctly fixes a crash for long hexdumps. Further, print_in_hook() must return the number of bytes that would have been written, not the actually written bytes. This is important, as we allocate a dynamic buffer in bus that relies on the exact byte count. Fixes long hexdumps that got truncated.
* printf-hook-builtin: Don't use %P to print uppercase hex pointersMartin Willi2013-11-201-6/+0
| | | | We use %P as custom printf specifier for proposals.
* printf-hook-builtin: Don't rely on isinf() return value signednessMartin Willi2013-10-241-8/+9
| | | | | Many systems don't return a negative value for negative infinities; so do a separate check.
* vstr: Forward actual field widthTobias Brunner2013-10-111-1/+1
| | | | | fmt_field_width is a flag that indicates if a field width is defined in obj_field_width.
* printf-hook-builtin: Print NaN/Infinity floating point values as suchMartin Willi2013-10-111-2/+22
|
* printf-hook-builtin: Correctly round up floating point valuesMartin Willi2013-10-111-1/+15
|
* printf-hook-builtin: Add some preliminary floating point supportMartin Willi2013-10-111-2/+194
| | | | | This minimalistic implementation has no aspiration for completeness or accuracy, and just provides what we need.
* printf-hook-builtin: Support GNU %m specifierMartin Willi2013-10-111-0/+8
|
* printf-hook-builtin: Add a new "builtin" backend using its own printf() routinesMartin Willi2013-10-113-0/+1017
| | | | | | Overloads printf C library functions by a self-contained implementation, based on klibc. Does not yet feature all the required default formatters, including those for floating point values.
* printf-hook: Move glibc/vstr printf hook backends to separate filesMartin Willi2013-10-114-0/+953