Changeset 8a9a41e in mainline for uspace/srv/hid/output/port/chardev.c


Ignore:
Timestamp:
2021-10-24T08:28:43Z (4 years ago)
Author:
GitHub <noreply@…>
Children:
9ea3a41
Parents:
2ce943a (diff), cd981f2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Erik Kučák <35500848+Riko196@…> (2021-10-24 08:28:43)
git-committer:
GitHub <noreply@…> (2021-10-24 08:28:43)
Message:

Merge branch 'HelenOS:master' into master

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/output/port/chardev.c

    r2ce943a r8a9a41e  
    7878}
    7979
    80 static void chardev_putuchar(char32_t ch)
     80static void chardev_putchar(char ch)
    8181{
    8282        if (chardev_bused == chardev_buf_size)
    8383                chardev_flush();
    84         if (!ascii_check(ch))
    85                 ch = '?';
    8684        chardev_buf[chardev_bused++] = (uint8_t) ch;
     85}
     86
     87static void chardev_putuchar(char32_t ch)
     88{
     89        char buf[STR_BOUNDS(1)];
     90        size_t off;
     91        size_t i;
     92        errno_t rc;
     93
     94        off = 0;
     95        rc = chr_encode(ch, buf, &off, sizeof(buf));
     96        if (rc != EOK)
     97                return;
     98
     99        for (i = 0; i < off; i++)
     100                chardev_putchar(buf[i]);
    87101}
    88102
     
    218232#elif defined(UARCH_arm64) && defined(MACHINE_virt)
    219233                /* OK */
     234#elif defined(UARCH_arm64) && defined(MACHINE_hikey960)
     235                /* OK */
    220236#else
    221237                return EOK;
Note: See TracChangeset for help on using the changeset viewer.