Changes in uspace/srv/hid/output/port/chardev.c [28a5ebd:b79c91cc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/output/port/chardev.c
r28a5ebd rb79c91cc 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.