Changes in uspace/app/klog/klog.c [25bbaea:6119f24] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/klog/klog.c
r25bbaea r6119f24 44 44 #include <io/klog.h> 45 45 #include <sysinfo.h> 46 #include <fibril_synch.h>47 46 48 47 #define NAME "klog" … … 55 54 static FILE *log; 56 55 57 /* Serialize the output a bit. This will not avoid messed-up log completely58 but chances for are pretty high (experimentally confirmed). */59 static FIBRIL_MUTEX_INITIALIZE(log_mutex);60 61 56 static void interrupt_received(ipc_callid_t callid, ipc_call_t *call) 62 57 { 63 fibril_mutex_lock(&log_mutex);64 65 58 size_t klog_start = (size_t) IPC_GET_ARG1(*call); 66 59 size_t klog_len = (size_t) IPC_GET_ARG2(*call); … … 81 74 fsync(fileno(log)); 82 75 } 83 84 fibril_mutex_unlock(&log_mutex);85 76 } 86 77
Note:
See TracChangeset
for help on using the changeset viewer.