Changeset 59adc2b in mainline for generic/src/mm/frame.c


Ignore:
Timestamp:
2006-01-08T15:18:33Z (19 years ago)
Author:
Sergey Bondari <bondari@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
677a6d5
Parents:
1a67595
Message:

Minor changes to 'zone' command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/frame.c

    r1a67595 r59adc2b  
    490490        zone_t *zone = NULL;
    491491        link_t *cur;
    492         index_t i = 0;
    493492        spinlock_lock(&zone_head_lock);
    494         printf("No.\tBase address\tFree Frames\tBusy Frames\n");
    495         printf("---\t------------\t-----------\t-----------\n");
     493        printf("Base address\tFree Frames\tBusy Frames\n");
     494        printf("------------\t-----------\t-----------\n");
    496495        for (cur = zone_head.next; cur != &zone_head; cur = cur->next) {
    497496                zone = list_get_instance(cur, zone_t, link);
    498497                spinlock_lock(&zone->lock);
    499                 printf("%d\t%L\t%d\t\t%d\n",i++,zone->base, zone->free_count, zone->busy_count);
     498                printf("%L\t%d\t\t%d\n",zone->base, zone->free_count, zone->busy_count);
    500499        }
    501500        spinlock_unlock(&zone_head_lock);
     
    537536       
    538537        printf("\nBuddy allocator structures:\n\n");
    539         buddy_system_structure_print(zone->buddy_system);
    540        
     538        buddy_system_structure_print(zone->buddy_system, FRAME_SIZE);
    541539       
    542540        spinlock_unlock(&zone->lock);
Note: See TracChangeset for help on using the changeset viewer.