Changes in kernel/generic/src/mm/frame.c [7e752b2:af96dd57] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/frame.c
r7e752b2 raf96dd57 145 145 (!iswithin(zones.info[i].base, zones.info[i].count, 146 146 base, 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)); 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)); 152 151 } 153 152 … … 879 878 * the assert 880 879 */ 881 ASSERT(confframe != ADDR2PFN((uintptr_t ) NULL));880 ASSERT(confframe != NULL); 882 881 883 882 /* If confframe is supposed to be inside our zone, then make sure … … 1050 1049 1051 1050 #ifdef CONFIG_DEBUG 1052 printf("Thread %" PRIu64 " waiting for % zuframes, "1053 "% zuavailable.\n", THREAD->tid, size, avail);1051 printf("Thread %" PRIu64 " waiting for %" PRIs " frames, " 1052 "%" PRIs " available.\n", THREAD->tid, size, avail); 1054 1053 #endif 1055 1054 … … 1105 1104 */ 1106 1105 pfn_t pfn = ADDR2PFN(frame); 1107 size_t znum = find_zone(pfn, 1, 0);1106 size_t znum = find_zone(pfn, 1, NULL); 1108 1107 1109 1108 ASSERT(znum != (size_t) -1); … … 1142 1141 * First, find host frame zone for addr. 1143 1142 */ 1144 size_t znum = find_zone(pfn, 1, 0);1143 size_t znum = find_zone(pfn, 1, NULL); 1145 1144 1146 1145 ASSERT(znum != (size_t) -1); … … 1298 1297 bool available = zone_flags_available(flags); 1299 1298 1300 printf("%-4 zu", i);1299 printf("%-4" PRIs, i); 1301 1300 1302 1301 #ifdef __32_BITS__ 1303 printf(" % p", (void *)base);1302 printf(" %10p", base); 1304 1303 #endif 1305 1304 1306 1305 #ifdef __64_BITS__ 1307 printf(" % p", (void *)base);1306 printf(" %18p", base); 1308 1307 #endif 1309 1308 1310 printf(" %12 zu%c%c%c ", count,1309 printf(" %12" PRIs " %c%c%c ", count, 1311 1310 available ? 'A' : ' ', 1312 1311 (flags & ZONE_RESERVED) ? 'R' : ' ', … … 1314 1313 1315 1314 if (available) 1316 printf("%14 zu %14zu",1315 printf("%14" PRIs " %14" PRIs, 1317 1316 free_count, busy_count); 1318 1317 … … 1355 1354 bool available = zone_flags_available(flags); 1356 1355 1357 printf("Zone number: % zu\n", znum);1358 printf("Zone base address: %p\n", (void *)base);1359 printf("Zone size: % zu frames (%zuKiB)\n", count,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, 1360 1359 SIZE2KB(FRAMES2SIZE(count))); 1361 1360 printf("Zone flags: %c%c%c\n", … … 1365 1364 1366 1365 if (available) { 1367 printf("Allocated space: % zu frames (%zuKiB)\n",1366 printf("Allocated space: %" PRIs " frames (%" PRIs " KiB)\n", 1368 1367 busy_count, SIZE2KB(FRAMES2SIZE(busy_count))); 1369 printf("Available space: % zu frames (%zuKiB)\n",1368 printf("Available space: %" PRIs " frames (%" PRIs " KiB)\n", 1370 1369 free_count, SIZE2KB(FRAMES2SIZE(free_count))); 1371 1370 }
Note:
See TracChangeset
for help on using the changeset viewer.