Changeset 280a27e in mainline for generic/src/mm/frame.c
- Timestamp:
- 2006-04-16T13:16:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50de918
- Parents:
- c624b96
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/frame.c
rc624b96 r280a27e 281 281 zone = (zone_t *) b->data; 282 282 index = frame_index(zone, frame); 283 printf("% d", index);283 printf("%zd", index); 284 284 } 285 285 … … 1029 1029 zone = zones.info[i]; 1030 1030 spinlock_lock(&zone->lock); 1031 printf("%d: % L\t%d\t\t%d\n",i,PFN2ADDR(zone->base),1031 printf("%d: %#X \t%zd\t\t%zd\n",i,PFN2ADDR(zone->base), 1032 1032 zone->free_count, zone->busy_count); 1033 1033 spinlock_unlock(&zone->lock); … … 1062 1062 spinlock_lock(&zone->lock); 1063 1063 printf("Memory zone information\n"); 1064 printf("Zone base address: % P\n", PFN2ADDR(zone->base));1065 printf("Zone size: % d frames (%dK)\n", zone->count, ((zone->count) * FRAME_SIZE) >> 10);1066 printf("Allocated space: % d frames (%dK)\n", zone->busy_count, (zone->busy_count * FRAME_SIZE) >> 10);1067 printf("Available space: % d (%dK)\n", zone->free_count, (zone->free_count * FRAME_SIZE) >> 10);1064 printf("Zone base address: %#zX\n", PFN2ADDR(zone->base)); 1065 printf("Zone size: %zd frames (%zdK)\n", zone->count, ((zone->count) * FRAME_SIZE) >> 10); 1066 printf("Allocated space: %zd frames (%zdK)\n", zone->busy_count, (zone->busy_count * FRAME_SIZE) >> 10); 1067 printf("Available space: %zd (%zdK)\n", zone->free_count, (zone->free_count * FRAME_SIZE) >> 10); 1068 1068 buddy_system_structure_print(zone->buddy_system, FRAME_SIZE); 1069 1069
Note:
See TracChangeset
for help on using the changeset viewer.