Changes in uspace/app/klog/klog.c [297cb73:fbcdeb8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/klog/klog.c
r297cb73 rfbcdeb8 48 48 #include <adt/list.h> 49 49 #include <adt/prodcons.h> 50 #include <tinput.h>51 50 52 51 #define NAME "klog" … … 229 228 } 230 229 231 tinput_t *input = tinput_new();232 if (!input) {233 fprintf(stderr, "%s: Could not create input\n", NAME);234 return ENOMEM;235 }236 237 230 fibril_add_ready(fid); 238 231 event_unmask(EVENT_KLOG); 239 232 klog_update(); 240 233 241 tinput_set_prompt(input, "klog> "); 242 243 char *str; 244 while ((rc = tinput_read(input, &str)) == EOK) { 245 if (str_cmp(str, "") == 0) { 246 free(str); 247 continue; 248 } 249 250 klog_command(str, str_size(str)); 251 free(str); 252 } 253 254 if (rc == ENOENT) 255 rc = EOK; 256 257 return EOK; 234 task_retval(0); 235 async_manager(); 236 237 return 0; 258 238 } 259 239
Note:
See TracChangeset
for help on using the changeset viewer.