summaryrefslogtreecommitdiffstats
path: root/src/core/vsprintf.c
Commit message (Collapse)AuthorAgeFilesLines
* [libc] Print "<NULL>" for wide-character NULL stringsMichael Brown2016-04-121-2/+4
| | | | | | | | The existing code intends to print NULL strings as "<NULL>" (for the sake of debug messages), but the logic is incorrect when handling wide-character strings. Fix the logic and add applicable unit tests. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Relicense files under GPL2_OR_LATER_OR_UBDLMichael Brown2015-03-021-1/+5
| | | | | | | | | | These files cannot be automatically relicensed by util/relicense.pl since they either contain unusual but trivial contributions (such as the addition of __nonnull function attributes), or contain lines dating back to the initial git revision (and so require manual knowledge of the code's origin). Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [console] Fix display of characters with top bit setMichael Brown2014-03-131-1/+1
| | | | | | | | | | Inhibit implicit sign-padding of characters with the top bit set (e.g. accented characters), which confuses the mucurses library by colliding with the bits used to store character attributes and colours. Reported-by: Marc Delisle <Marc.Delisle@cegepsherbrooke.qc.ca> Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Update FSF mailing address in GPL licence textsMichael Brown2012-07-201-1/+2
| | | | | Suggested-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Add support for "%lc" and "%ls" format specifiersMichael Brown2012-07-191-5/+31
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [console] Move putchar() and getchar() declarations to stdio.hMichael Brown2012-03-261-1/+0Star
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [libc] Allow for zero-padded decimals in printf()Michael Brown2011-07-061-10/+27
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [console] Move include/console.h to include/ipxe/console.hMichael Brown2011-03-091-1/+1
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [build] Rename gPXE to iPXEMichael Brown2010-04-201-1/+1
| | | | | | | | | | | Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Add a selection of FILE_LICENCE declarationsMichael Brown2009-05-181-0/+2
| | | | | Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
* Move [v]ssnprintf() from iscsi.c into vsprintf.c; we need themMichael Brown2007-05-311-0/+39
| | | | elsewhere as well.
* vsprintf.h is gPXE-specific; move it to include/gpxeMichael Brown2007-01-191-1/+1
|
* Use stdio.h instead of vsprintf.hMichael Brown2007-01-191-0/+1
|
* Catch attempts to print NULL stringsMichael Brown2006-12-191-0/+2
|
* Fixed off-by-one errorMichael Brown2006-11-221-1/+1
|
* Accept '%i' as a synonym for '%d'.Michael Brown2006-07-251-1/+1
|
* Allow vcprintf() to be called by external code such as the curses library.Michael Brown2006-05-221-38/+38
| | | | Also trim another eight bytes from vsprintf.o. :)
* Handle the '"%c", 0' case correctly.Michael Brown2006-05-141-1/+1
|
* Correctly handle zero-length buffers.Michael Brown2006-05-141-10/+9Star
|
* Updated documentation.Michael Brown2006-05-141-45/+103
| | | | | | | | Shaved around 100 bytes off vsprintf.o. It's now 50 bytes smaller than the old implementation and provides much more conformant semantics, including the ability to return the number of characters that would have been printed to the string had the buffer been big enough. (iSCSI needs this functionality).
* Rewrote printf and friends to better support standard C semantics.Michael Brown2006-05-141-165/+274
|
* At least cope with "%llx" by reading the correct-sized va_arg from theMichael Brown2006-05-131-7/+16
| | | | | | | | | | stack, even if we don't yet print it out. At some point, vsprintf() needs to be fixed up so that it can correctly cope with limited-sized buffers (i.e. vsnprintf), long longs, and standard format specifiers (e.g. "%04x"). We should also remove the special types (MAC addresses and IP addresses). This would then enable us to use gcc's ability to type-check printf format strings.
* Add a temporary snprintf, so that safely-written code can at leastMichael Brown2006-04-301-0/+11
| | | | compile, even if it won't yet be safe.
* Update now that if_ether.h has moved.Michael Brown2006-04-191-1/+1
|
* Merge from Etherboot 5.4Michael Brown2006-03-161-3/+4
|\
* | Some versions of doxygen seem to object to "@ret None" or similar.Michael Brown2005-05-241-4/+4
| |
* | Use "#var" rather than "@c var" for doxygen.Michael Brown2005-05-201-2/+2
| |
* | API docs to .hMichael Brown2005-05-191-36/+1Star
| |
* | DoxygenationMichael Brown2005-05-191-20/+73
| |
* | Document %mMichael Brown2005-05-181-0/+1
| |
* | Added errno, strerror and the "%m" printf metacharacter. These will allowMichael Brown2005-05-171-9/+13
|/ | | | | | us to return proper PXE status codes, while simultaneously allowing for more consistent error reporting (complete with verbose error messages as a build-time option).
* Gave vsprintf.c its own header file, and made console.h include it.Michael Brown2005-04-171-1/+4
|
* Initial revisionMichael Brown2005-03-081-0/+166