mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Add support for %S to libstand as well so /boot/loader and friends can
use it.
This commit is contained in:
parent
a54e0911c4
commit
da019dfdd5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300078
|
@ -204,6 +204,7 @@ kvprintf(char const *fmt, kvprintf_fn_t *func, void *arg, int radix, va_list ap)
|
|||
char nbuf[MAXNBUF];
|
||||
char *d;
|
||||
const char *p, *percent, *q;
|
||||
uint16_t *S;
|
||||
u_char *up;
|
||||
int ch, n;
|
||||
uintmax_t num;
|
||||
|
@ -398,6 +399,10 @@ reswitch: switch (ch = (u_char)*fmt++) {
|
|||
while (width--)
|
||||
PCHAR(padc);
|
||||
break;
|
||||
case 'S': /* Assume console can cope with wide chars */
|
||||
for (S = va_arg(ap, uint16_t *); *S != 0; S++)
|
||||
PCHAR(*S);
|
||||
break;
|
||||
case 't':
|
||||
tflag = 1;
|
||||
goto reswitch;
|
||||
|
|
Loading…
Reference in a new issue