mirror of
https://gitlab.com/bztsrc/posix-uefi.git
synced 2024-12-28 06:55:08 +01:00
Added support for %i option.
This commit is contained in:
parent
04d88513b0
commit
3f59011518
2 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ Sets an environment variable by `name` with `data` of length `len`. On success r
|
|||
| getchar_ifany | non-blocking, returns 0 if there was no key press, UNICODE otherwise |
|
||||
| putchar | as usual, stdout only (no stream redirects) |
|
||||
|
||||
String formating is limited; only supports padding via positive number prefixes, `%d`, `%x`, `%X`, `%c`, `%s`, `%q` and
|
||||
String formating is limited; only supports padding via positive number prefixes, `%d`, `%i`, `%x`, `%X`, `%c`, `%s`, `%q` and
|
||||
`%p` (no `%e`, `%f`, `%g`, no asterisk and dollar). When `UEFI_NO_UTF8` is defined, then formating operates on wchar_t, so
|
||||
it also supports the non-standard `%S` (printing an UTF-8 string) and `%Q` (printing an escaped UTF-8 string). These
|
||||
functions don't allocate memory, but in return the total length of the output string cannot be longer than `BUFSIZ`
|
||||
|
|
|
@ -544,7 +544,7 @@ int vsnprintf(char_t *dst, size_t maxlen, const char_t *fmt, __builtin_va_list a
|
|||
fmt++;
|
||||
continue;
|
||||
} else
|
||||
if(*fmt==CL('d')) {
|
||||
if(*fmt==CL('d') || *fmt==CL('i')) {
|
||||
arg = __builtin_va_arg(args, int64_t);
|
||||
sign=0;
|
||||
if(arg<0) {
|
||||
|
|
Loading…
Reference in a new issue