Changes in kernel/generic/src/mm/frame.c [af96dd57:7e752b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
raf96dd57 r7e752b2 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 … … 878 879 * the assert 879 880 */ 880 ASSERT(confframe != NULL);881 ASSERT(confframe != ADDR2PFN((uintptr_t ) NULL)); 881 882 882 883 /* If confframe is supposed to be inside our zone, then make sure … … 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 … … 1104 1105 */ 1105 1106 pfn_t pfn = ADDR2PFN(frame); 1106 size_t znum = find_zone(pfn, 1, NULL);1107 size_t znum = find_zone(pfn, 1, 0); 1107 1108 1108 1109 ASSERT(znum != (size_t) -1); … … 1141 1142 * First, find host frame zone for addr. 1142 1143 */ 1143 size_t znum = find_zone(pfn, 1, NULL);1144 size_t znum = find_zone(pfn, 1, 0); 1144 1145 1145 1146 ASSERT(znum != (size_t) -1); … … 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.