[ipxe-devel] [ipxe/ipxe] printf: add support for field width as an argument (#60)
Doug Goldstein
notifications at github.com
Mon Dec 19 17:07:48 UTC 2016
Add support for the field width to be specified as an argument by using
the '*' modifier. See the POSIX.1 specification for more details on
conformance at
http://pubs.opengroup.org/onlinepubs/9699919799/functions/printf.html
This change make the following calls equivalent:
printf("%6s\n", "test");
printf("%*s\n", 6, "test");
Signed-off-by: Doug Goldstein <cardoe at cardoe.com>
You can view, comment on, or merge this pull request online at:
https://github.com/ipxe/ipxe/pull/60
-- Commit Summary --
* printf: add support for field width as an argument
-- File Changes --
M src/core/vsprintf.c (4)
-- Patch Links --
https://github.com/ipxe/ipxe/pull/60.patch
https://github.com/ipxe/ipxe/pull/60.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/60
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20161219/cc3ea036/attachment.htm>
More information about the ipxe-devel
mailing list