Changeset 8a9a41e in mainline for uspace/srv/hid/output/port/chardev.c
- Timestamp:
- 2021-10-24T08:28:43Z (4 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/port/chardev.c
r2ce943a r8a9a41e 78 78 } 79 79 80 static void chardev_put uchar(char32_tch)80 static void chardev_putchar(char ch) 81 81 { 82 82 if (chardev_bused == chardev_buf_size) 83 83 chardev_flush(); 84 if (!ascii_check(ch))85 ch = '?';86 84 chardev_buf[chardev_bused++] = (uint8_t) ch; 85 } 86 87 static 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]); 87 101 } 88 102 … … 218 232 #elif defined(UARCH_arm64) && defined(MACHINE_virt) 219 233 /* OK */ 234 #elif defined(UARCH_arm64) && defined(MACHINE_hikey960) 235 /* OK */ 220 236 #else 221 237 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.