Changes in uspace/srv/klog/klog.c [b7fd2a0:38d150e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/klog/klog.c
rb7fd2a0 r38d150e 100 100 static void producer(void) 101 101 { 102 size_t len = 0;103 errno_t rc = klog_read(buffer, BUFFER_SIZE, &len);104 if (r c != EOK) {105 log_msg(LOG_DEFAULT, LVL_ERROR, "klog_read failed, rc = % s",106 str_error_name(rc));102 int read = klog_read(buffer, BUFFER_SIZE); 103 104 if (read < 0) { 105 log_msg(LOG_DEFAULT, LVL_ERROR, "klog_read failed, rc = %d", 106 read); 107 107 return; 108 108 } 109 109 110 size_t len = read; 110 111 size_t offset = 0; 111 112 while (offset < len) { … … 146 147 * 147 148 */ 148 static errno_t consumer(void *data)149 static int consumer(void *data) 149 150 { 150 151 … … 210 211 int main(int argc, char *argv[]) 211 212 { 212 errno_t rc = log_init(NAME);213 int rc = log_init(NAME); 213 214 if (rc != EOK) { 214 215 fprintf(stderr, "%s: Unable to initialize log\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.