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