Changeset ed88c8e in mainline for kernel/generic/src/console/console.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/console/console.c

    ra57fa32 red88c8e  
    262262                        if (count > 0) {
    263263                                /* Space, backspace, space */
    264                                 putchar('\b');
    265                                 putchar(' ');
    266                                 putchar('\b');
     264                                putwchar('\b');
     265                                putwchar(' ');
     266                                putwchar('\b');
    267267
    268268                                count--;
     
    273273
    274274                if (chr_encode(ch, buf, &offset, buflen - 1) == EOK) {
    275                         putchar(ch);
     275                        putwchar(ch);
    276276                        count++;
    277277                        buf[offset] = 0;
     
    286286{
    287287        wchar_t ch = indev_pop_character(indev);
    288         putchar(ch);
     288        putwchar(ch);
    289289        return ch;
    290290}
     
    356356}
    357357
    358 void putchar(const wchar_t ch)
     358void putwchar(const wchar_t ch)
    359359{
    360360        bool ordy = ((stdout) && (stdout->op->write));
     
    373373                 * for possible future output.
    374374                 *
    375                  * The early_putchar() function is used to output
     375                 * The early_putwchar() function is used to output
    376376                 * the character for low-level debugging purposes.
    377377                 * Note that the early_putc() function might be
    378378                 * a no-op on certain hardware configurations.
    379379                 */
    380                 early_putchar(ch);
     380                early_putwchar(ch);
    381381        }
    382382
Note: See TracChangeset for help on using the changeset viewer.