Changeset ed88c8e in mainline for kernel/generic/src/printf/vprintf.c


Ignore:
Timestamp:
2018-05-29T13:25:07Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fc0b2a8
Parents:
a57fa32
git-author:
Jiri Svoboda <jiri@…> (2018-05-28 17:24:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-29 13:25:07)
Message:

fputc, putchar vs. fputwc, putwchar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/printf/vprintf.c

    ra57fa32 red88c8e  
    4747
    4848        while (offset < size) {
    49                 putchar(str_decode(str, &offset, size));
     49                putwchar(str_decode(str, &offset, size));
    5050                chars++;
    5151        }
     
    6060
    6161        while (offset < size) {
    62                 putchar(str[chars]);
     62                putwchar(str[chars]);
    6363                chars++;
    6464                offset += sizeof(wchar_t);
     
    7575
    7676        while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) {
    77                 putchar(uc);
     77                putwchar(uc);
    7878                chars++;
    7979        }
    8080
    81         putchar('\n');
     81        putwchar('\n');
    8282        return chars;
    8383}
Note: See TracChangeset for help on using the changeset viewer.