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