Changeset 98000fb in mainline for kernel/generic/src/main
- Timestamp:
- 2009-06-03T19:34:45Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- Location:
- kernel/generic/src/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r69e68e3 r98000fb 128 128 129 129 if (config.cpu_count > 1) { 130 count_t i;130 size_t i; 131 131 132 132 /* … … 141 141 thread_ready(thread); 142 142 } else 143 printf("Unable to create kcpulb thread for cpu" PRI c"\n", i);143 printf("Unable to create kcpulb thread for cpu" PRIs "\n", i); 144 144 } 145 145 } … … 169 169 * Create user tasks, load RAM disk images. 170 170 */ 171 count_t i;171 size_t i; 172 172 program_t programs[CONFIG_INIT_TASKS]; 173 173 174 174 for (i = 0; i < init.cnt; i++) { 175 175 if (init.tasks[i].addr % FRAME_SIZE) { 176 printf("init[%" PRI c"].addr is not frame aligned\n", i);176 printf("init[%" PRIs "].addr is not frame aligned\n", i); 177 177 continue; 178 178 } … … 214 214 215 215 if (rd != RE_OK) 216 printf("Init binary %" PRI c" not used (error %d)\n", i, rd);216 printf("Init binary %" PRIs " not used (error %d)\n", i, rd); 217 217 } 218 218 } -
kernel/generic/src/main/main.c
r69e68e3 r98000fb 154 154 155 155 /* Avoid placing stack on top of init */ 156 count_t i;156 size_t i; 157 157 for (i = 0; i < init.cnt; i++) { 158 158 if (PA_overlaps(config.stack_base, config.stack_size, … … 234 234 LOG_EXEC(slab_enable_cpucache()); 235 235 236 printf("Detected %" PRI c" CPU(s), %" PRIu64" MiB free memory\n",236 printf("Detected %" PRIs " CPU(s), %" PRIu64" MiB free memory\n", 237 237 config.cpu_count, SIZE2MB(zone_total_size())); 238 238 … … 248 248 249 249 if (init.cnt > 0) { 250 count_t i;250 size_t i; 251 251 for (i = 0; i < init.cnt; i++) 252 LOG("init[%" PRI c "].addr=%#" PRIp ", init[%" PRIc252 LOG("init[%" PRIs "].addr=%#" PRIp ", init[%" PRIs 253 253 "].size=%#" PRIs, i, init.tasks[i].addr, i, 254 254 init.tasks[i].size);
Note:
See TracChangeset
for help on using the changeset viewer.
