Changes in kernel/generic/src/main/main.c [e2650d3:933cadf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/main.c
re2650d3 r933cadf 58 58 #include <proc/thread.h> 59 59 #include <proc/task.h> 60 #include <proc/tasklet.h>61 60 #include <main/kinit.h> 62 61 #include <main/version.h> … … 97 96 /** Boot allocations. */ 98 97 ballocs_t ballocs = { 99 .base = NULL,98 .base = (uintptr_t) NULL, 100 99 .size = 0 101 100 }; … … 183 182 version_print(); 184 183 185 LOG("\nconfig.base=%p config.kernel_size=% " PRIs186 "\nconfig.stack_base=%p config.stack_size=% " PRIs,187 config.base, config.kernel_size, config.stack_base,188 config.stack_size);184 LOG("\nconfig.base=%p config.kernel_size=%zu" 185 "\nconfig.stack_base=%p config.stack_size=%zu", 186 (void *) config.base, config.kernel_size, 187 (void *) config.stack_base, config.stack_size); 189 188 190 189 #ifdef CONFIG_KCONSOLE … … 217 216 tlb_init(); 218 217 ddi_init(); 219 tasklet_init();220 218 arch_post_mm_init(); 221 219 arch_pre_smp_init(); … … 225 223 slab_enable_cpucache(); 226 224 227 printf("Detected %" PRIs " CPU(s), %" PRIu64" MiB free memory\n", 228 config.cpu_count, SIZE2MB(zones_total_size())); 225 uint64_t size; 226 const char *size_suffix; 227 bin_order_suffix(zones_total_size(), &size, &size_suffix, false); 228 printf("Detected %u CPU(s), %" PRIu64 " %s free memory\n", 229 config.cpu_count, size, size_suffix); 229 230 230 231 cpu_init(); … … 241 242 size_t i; 242 243 for (i = 0; i < init.cnt; i++) 243 LOG("init[%" PRIs "].addr=%p, init[%" PRIs 244 "].size=%" PRIs, i, init.tasks[i].addr, i, 245 init.tasks[i].size); 244 LOG("init[%zu].addr=%p, init[%zu].size=%zu", 245 i, (void *) init.tasks[i].addr, i, init.tasks[i].size); 246 246 } else 247 247 printf("No init binaries found.\n");
Note:
See TracChangeset
for help on using the changeset viewer.