Changeset bbc28be in mainline for kernel/generic/src/mm/frame.c
- Timestamp:
- 2010-12-03T12:59:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70c85211
- Parents:
- 2e15ac40 (diff), da55d5b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
r2e15ac40 rbbc28be 145 145 (!iswithin(zones.info[i].base, zones.info[i].count, 146 146 base, count))) { 147 printf("Zone (%p, %p) overlaps with previous zone (%p, %p)!\n", 148 PFN2ADDR(base), PFN2ADDR(count), 149 PFN2ADDR(zones.info[i].base), 150 PFN2ADDR(zones.info[i].count)); 147 printf("Zone (%p, %p) overlaps " 148 "with previous zone (%p %p)!\n", 149 (void *) PFN2ADDR(base), (void *) PFN2ADDR(count), 150 (void *) PFN2ADDR(zones.info[i].base), 151 (void *) PFN2ADDR(zones.info[i].count)); 151 152 } 152 153 … … 1049 1050 1050 1051 #ifdef CONFIG_DEBUG 1051 printf("Thread %" PRIu64 " waiting for % " PRIs "frames, "1052 "% " PRIs "available.\n", THREAD->tid, size, avail);1052 printf("Thread %" PRIu64 " waiting for %zu frames, " 1053 "%zu available.\n", THREAD->tid, size, avail); 1053 1054 #endif 1054 1055 … … 1297 1298 bool available = zone_flags_available(flags); 1298 1299 1299 printf("%-4 " PRIs, i);1300 printf("%-4zu", i); 1300 1301 1301 1302 #ifdef __32_BITS__ 1302 printf(" % 10p",base);1303 printf(" %p", (void *) base); 1303 1304 #endif 1304 1305 1305 1306 #ifdef __64_BITS__ 1306 printf(" % 18p",base);1307 printf(" %p", (void *) base); 1307 1308 #endif 1308 1309 1309 printf(" %12 " PRIs "%c%c%c ", count,1310 printf(" %12zu %c%c%c ", count, 1310 1311 available ? 'A' : ' ', 1311 1312 (flags & ZONE_RESERVED) ? 'R' : ' ', … … 1313 1314 1314 1315 if (available) 1315 printf("%14 " PRIs " %14" PRIs,1316 printf("%14zu %14zu", 1316 1317 free_count, busy_count); 1317 1318 … … 1354 1355 bool available = zone_flags_available(flags); 1355 1356 1356 printf("Zone number: % " PRIs "\n", znum);1357 printf("Zone base address: %p\n", base);1358 printf("Zone size: % " PRIs " frames (%" PRIs "KiB)\n", count,1357 printf("Zone number: %zu\n", znum); 1358 printf("Zone base address: %p\n", (void *) base); 1359 printf("Zone size: %zu frames (%zu KiB)\n", count, 1359 1360 SIZE2KB(FRAMES2SIZE(count))); 1360 1361 printf("Zone flags: %c%c%c\n", … … 1364 1365 1365 1366 if (available) { 1366 printf("Allocated space: % " PRIs " frames (%" PRIs "KiB)\n",1367 printf("Allocated space: %zu frames (%zu KiB)\n", 1367 1368 busy_count, SIZE2KB(FRAMES2SIZE(busy_count))); 1368 printf("Available space: % " PRIs " frames (%" PRIs "KiB)\n",1369 printf("Available space: %zu frames (%zu KiB)\n", 1369 1370 free_count, SIZE2KB(FRAMES2SIZE(free_count))); 1370 1371 }
Note:
See TracChangeset
for help on using the changeset viewer.