Changes in uspace/app/kio/kio.c [28a5ebd:fafb8e5] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/kio/kio.c

    r28a5ebd rfafb8e5  
    5656        link_t link;
    5757        size_t length;
    58         char32_t *data;
     58        wchar_t *data;
    5959} item_t;
    6060
     
    6262
    6363/* Pointer to kio area */
    64 static char32_t *kio = (char32_t *) AS_AREA_ANY;
     64static wchar_t *kio = (wchar_t *) AS_AREA_ANY;
    6565static size_t kio_length;
    6666
     
    7777 *
    7878 */
    79 static void producer(size_t length, char32_t *data)
     79static void producer(size_t length, wchar_t *data)
    8080{
    8181        item_t *item = (item_t *) malloc(sizeof(item_t));
     
    8383                return;
    8484
    85         size_t sz = sizeof(char32_t) * length;
    86         char32_t *buf = (char32_t *) malloc(sz);
     85        size_t sz = sizeof(wchar_t) * length;
     86        wchar_t *buf = (wchar_t *) malloc(sz);
    8787        if (buf == NULL) {
    8888                free(item);
     
    121121
    122122                for (size_t i = 0; i < item->length; i++)
    123                         putuchar(item->data[i]);
     123                        putwchar(item->data[i]);
    124124
    125125                if (log != NULL) {
    126126                        for (size_t i = 0; i < item->length; i++)
    127                                 fputuc(item->data[i], log);
     127                                fputwc(item->data[i], log);
    128128
    129129                        fflush(log);
     
    202202
    203203        size_t size = pages * PAGE_SIZE;
    204         kio_length = size / sizeof(char32_t);
     204        kio_length = size / sizeof(wchar_t);
    205205
    206206        rc = physmem_map(faddr, pages, AS_AREA_READ | AS_AREA_CACHEABLE,
Note: See TracChangeset for help on using the changeset viewer.