Changeset 7e752b2 in mainline for kernel/generic/src/mm
- Timestamp:
- 2010-11-26T01:33:20Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf61d3a
- Parents:
- 202f57b
- Location:
- kernel/generic/src/mm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/mm/as.c
r202f57b r7e752b2 1811 1811 } 1812 1812 1813 panic("Inconsistency detected while adding % " PRIs "pages of used "1814 "space at %p.", count, page);1813 panic("Inconsistency detected while adding %zu pages of used " 1814 "space at %p.", count, (void *) page); 1815 1815 } 1816 1816 … … 1991 1991 1992 1992 error: 1993 panic("Inconsistency detected while removing % " PRIs "pages of used "1994 "space from %p.", count, page);1993 panic("Inconsistency detected while removing %zu pages of used " 1994 "space from %p.", count, (void *) page); 1995 1995 } 1996 1996 … … 2105 2105 2106 2106 mutex_lock(&area->lock); 2107 printf("as_area: %p, base=%p, pages=%" PRIs 2108 " (%p - %p)\n", area, area->base, area->pages, 2109 area->base, area->base + FRAMES2SIZE(area->pages)); 2107 printf("as_area: %p, base=%p, pages=%zu" 2108 " (%p - %p)\n", area, (void *) area->base, 2109 area->pages, (void *) area->base, 2110 (void *) (area->base + FRAMES2SIZE(area->pages))); 2110 2111 mutex_unlock(&area->lock); 2111 2112 } -
kernel/generic/src/mm/frame.c
r202f57b 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 … … 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 } -
kernel/generic/src/mm/slab.c
r202f57b r7e752b2 890 890 irq_spinlock_unlock(&slab_cache_lock, true); 891 891 892 printf("%-18s %8 " PRIs " %8u %8" PRIs "%8ld %8ld %8ld %-5s\n",892 printf("%-18s %8zu %8u %8zu %8ld %8ld %8ld %-5s\n", 893 893 name, size, (1 << order), objects, allocated_slabs, 894 894 cached_objs, allocated_objs,
Note:
See TracChangeset
for help on using the changeset viewer.