| 199 | } |
| 200 | |
| 201 | static int log_printf_str_write(const char *str, size_t size, void *data) |
| 202 | { |
| 203 | size_t offset = 0; |
| 204 | size_t chars = 0; |
| 205 | |
| 206 | while (offset < size) { |
| 207 | kio_push_char(str_decode(str, &offset, size)); |
| 208 | chars++; |
| 209 | } |
| 210 | |
| 211 | log_append((const uint8_t *)str, size); |
| 212 | |
| 213 | return chars; |
| 214 | } |
| 215 | |
| 216 | static int log_printf_wstr_write(const char32_t *wstr, size_t size, void *data) |
| 217 | { |
nothing calls this directly
no test coverage detected