Changeset 171f9a1 in mainline for uspace/app/klog/klog.c


Ignore:
Timestamp:
2009-04-03T20:39:33Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb01e1e
Parents:
7a2c479
Message:

Character encoding/decoding un uspace. Partially fix klog application.

File:
1 edited

Legend:

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

    r7a2c479 r171f9a1  
    4848#define NAME "klog"
    4949
    50 #define KLOG_SIZE PAGE_SIZE
     50#define KLOG_SIZE       PAGE_SIZE
     51#define KLOG_LENGTH     (KLOG_SIZE / sizeof(wchar_t))
    5152
    5253/* Pointer to klog area */
    53 static char *klog;
     54static wchar_t *klog;
    5455
    5556static void interrupt_received(ipc_callid_t callid, ipc_call_t *call)
     
    6263        size_t i;
    6364        for (i = klog_len - klog_stored; i < klog_len; i++)
    64                 putchar(klog[(klog_start + i) % KLOG_SIZE]);
     65                putchar(klog[(klog_start + i) % KLOG_LENGTH]);
    6566       
    6667        async_serialize_end();
Note: See TracChangeset for help on using the changeset viewer.