Changes in uspace/app/klog/klog.c [d9fae235:0da4e41] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/klog/klog.c
rd9fae235 r0da4e41 64 64 int main(int argc, char *argv[]) 65 65 { 66 size_t klog_pages; 67 if (sysinfo_get_value("klog.pages", &klog_pages) != EOK) { 68 printf("%s: Error getting klog address\n", NAME); 69 return -1; 70 } 71 66 size_t klog_pages = sysinfo_value("klog.pages"); 72 67 size_t klog_size = klog_pages * PAGE_SIZE; 73 68 klog_length = klog_size / sizeof(wchar_t); … … 75 70 klog = (wchar_t *) as_get_mappable_page(klog_size); 76 71 if (klog == NULL) { 77 printf( "%s: Error allocating memory area\n", NAME);72 printf(NAME ": Error allocating memory area\n"); 78 73 return -1; 79 74 } … … 82 77 klog_size, SERVICE_MEM_KLOG); 83 78 if (res != EOK) { 84 printf( "%s: Error initializing memory area\n", NAME);79 printf(NAME ": Error initializing memory area\n"); 85 80 return -1; 86 81 } 87 82 88 83 if (event_subscribe(EVENT_KLOG, 0) != EOK) { 89 printf( "%s: Error registering klog notifications\n", NAME);84 printf(NAME ": Error registering klog notifications\n"); 90 85 return -1; 91 86 }
Note:
See TracChangeset
for help on using the changeset viewer.